34 lines
999 B
Bash
Executable File
34 lines
999 B
Bash
Executable File
#!/bin/bash
|
|
echo "Starte macOS Installation für fcco-Converter..."
|
|
|
|
# Ins Root-Verzeichnis wechseln
|
|
cd "$(dirname "$0")/.."
|
|
|
|
# Prüfe Homebrew
|
|
if ! command -v brew &> /dev/null; then
|
|
echo "Homebrew ist nicht installiert. Installiere Homebrew..."
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
fi
|
|
|
|
# Installiere Abhängigkeiten via Homebrew
|
|
echo "Installiere Python und FFmpeg falls nötig..."
|
|
brew install python ffmpeg python-tk@3.11
|
|
|
|
# Virtuelle Umgebung erstellen
|
|
if [ ! -d ".venv" ]; then
|
|
echo "Erstelle virtuelle Umgebung..."
|
|
python3 -m venv .venv
|
|
fi
|
|
|
|
# Pakete installieren
|
|
echo "Installiere Python-Pakete..."
|
|
source .venv/bin/activate
|
|
pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
echo "==================="
|
|
echo "Installation abgeschlossen!"
|
|
echo "Du kannst das Programm nun mit einem Doppelklick auf 'start.sh' im Hauptordner starten,"
|
|
echo "oder im Terminal './start.sh' ausführen."
|
|
echo "==================="
|