49 lines
1.2 KiB
Batchfile
49 lines
1.2 KiB
Batchfile
@echo off
|
|
REM Build-Script für Windows-Executable
|
|
REM Erstellt standalone-Executables mit PyInstaller
|
|
|
|
echo ========================================
|
|
echo CSV-Processor - Windows Build
|
|
echo ========================================
|
|
|
|
REM Prüfe ob Python installiert ist
|
|
python --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo Python nicht gefunden. Bitte installieren Sie Python 3.7+
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Prüfe/Installiere PyInstaller
|
|
pip show pyinstaller >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo PyInstaller nicht gefunden. Installiere...
|
|
pip install pyinstaller
|
|
)
|
|
|
|
REM Verzeichnisse vorbereiten
|
|
echo.
|
|
echo Bereite Build-Verzeichnis vor...
|
|
if exist build rmdir /s /q build
|
|
if not exist dist mkdir dist
|
|
|
|
REM CLI-Version bauen
|
|
echo.
|
|
echo Baue CLI-Version...
|
|
pyinstaller --onefile --name csv-processor-cli --clean csv_processor.py
|
|
|
|
REM GUI-Version bauen
|
|
echo.
|
|
echo Baue GUI-Version...
|
|
pyinstaller --onefile --name csv-processor-gui --windowed --clean csv_processor_gui.py
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo Build abgeschlossen!
|
|
echo ========================================
|
|
echo.
|
|
echo Erstellte Dateien befinden sich in: dist\
|
|
dir dist\csv-processor-*.exe
|
|
echo.
|
|
pause
|