- gui.py: Grafische Benutzeroberfläche - start_gui.sh/cmd: Startskripte für GUI - GUI_README.md: Installationsanleitung für Tkinter - Features: PDF-Verwaltung, Fortschrittsanzeige, Live-Log
35 lines
833 B
Batchfile
35 lines
833 B
Batchfile
@echo off
|
|
REM PDF zu ICS Konverter - GUI Startskript (Windows)
|
|
|
|
setlocal enabledelayedexpansion
|
|
|
|
REM Wechsel ins Skriptverzeichnis
|
|
cd /d "%~dp0"
|
|
|
|
REM Überprüfe, ob venv existiert
|
|
if not exist ".venv" (
|
|
echo 📦 Python-Umgebung wird eingerichtet...
|
|
python3 -m venv .venv --upgrade-deps
|
|
if errorlevel 1 (
|
|
python -m venv .venv --upgrade-deps
|
|
)
|
|
)
|
|
|
|
REM Überprüfe, ob Abhängigkeiten installiert sind
|
|
.venv\Scripts\python.exe -c "import pdfplumber" 2>nul
|
|
if errorlevel 1 (
|
|
echo 📚 Installiere Abhängigkeiten...
|
|
call .venv\Scripts\python.exe -m pip install -q pdfplumber icalendar pypdf2 pytz
|
|
echo ✓ Abhängigkeiten installiert
|
|
)
|
|
|
|
REM Starte die GUI
|
|
echo 🎨 Starte GUI...
|
|
call .venv\Scripts\pythonw.exe gui.py
|
|
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo ❌ Fehler beim Starten der GUI
|
|
pause
|
|
)
|