Files
jarvis-voice-companion/install.sh
T

32 lines
981 B
Bash

#!/usr/bin/env bash
set -e
echo "😏 Installing Jarvis Desktop Voice Companion..."
# Check Python3
if ! command -v python3 &> /dev/null; then
echo "❌ Python3 nicht gefunden. Bitte installiere python3."
exit 1
fi
# Install dependencies
echo "📦 Installiere Python Pakete..."
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt || true
# Install mpv / notify-send if missing on Arch / Ubuntu
if command -v pacman &> /dev/null; then
sudo pacman -S --needed --noconfirm mpv libnotify portaudio || true
elif command -v apt &> /dev/null; then
sudo apt update && sudo apt install -y mpv libnotify-bin portaudio19-dev || true
fi
# Ensure config directory exists
mkdir -p ~/.config/jarvis-voice-companion
if [ ! -f ~/.config/jarvis-voice-companion/config.json ]; then
cp config.json.template ~/.config/jarvis-voice-companion/config.json
fi
echo "✅ Installation erfolgreich abgeschlossen!"
echo "Starte mit: python3 companion.py"