v1.4.0
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/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 "==================="
|
||||
@@ -0,0 +1,37 @@
|
||||
Write-Host "Starte Windows Installation für fcco-Converter..." -ForegroundColor Cyan
|
||||
|
||||
# Ins Root-Verzeichnis wechseln
|
||||
$PSScriptRoot = Split-Path -Parent -Path $MyInvocation.MyCommand.Definition
|
||||
Set-Location -Path "$PSScriptRoot\.."
|
||||
|
||||
Write-Host "Überprüfe FFmpeg..." -ForegroundColor Yellow
|
||||
if (Get-Command ffmpeg -ErrorAction SilentlyContinue) {
|
||||
Write-Host "FFmpeg ist bereits installiert." -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "Installiere FFmpeg via winget..." -ForegroundColor Yellow
|
||||
winget install --id "Gyan.FFmpeg" --accept-package-agreements --accept-source-agreements
|
||||
}
|
||||
|
||||
Write-Host "Überprüfe Python..." -ForegroundColor Yellow
|
||||
if (-not (Get-Command python -ErrorAction SilentlyContinue)) {
|
||||
Write-Host "Python ist nicht installiert. Installiere Python via winget..." -ForegroundColor Yellow
|
||||
winget install --id "Python.Python.3.11" --accept-package-agreements --accept-source-agreements
|
||||
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
|
||||
} else {
|
||||
Write-Host "Python ist bereits installiert." -ForegroundColor Green
|
||||
}
|
||||
|
||||
if (-not (Test-Path ".venv")) {
|
||||
Write-Host "Erstelle virtuelle Umgebung (.venv)..." -ForegroundColor Yellow
|
||||
python -m venv .venv
|
||||
}
|
||||
|
||||
Write-Host "Installiere Python-Pakete..." -ForegroundColor Yellow
|
||||
& .\.venv\Scripts\python.exe -m pip install --upgrade pip
|
||||
& .\.venv\Scripts\python.exe -m pip install -r requirements.txt
|
||||
|
||||
Write-Host "===================" -ForegroundColor Cyan
|
||||
Write-Host "Installation abgeschlossen!" -ForegroundColor Green
|
||||
Write-Host "Du kannst das Programm nun mit einem Doppelklick auf 'start.bat' im Hauptordner starten." -ForegroundColor White
|
||||
Write-Host "===================" -ForegroundColor Cyan
|
||||
Pause
|
||||
Reference in New Issue
Block a user