add GUI with customtkinter and build to windows executable
This commit is contained in:
1 parent
34e9aa49d6
commit
6e9d865a9d
7 files changed
+757
No files matched your search
@@ -0,0 +1,54 @@
|
||||
@echo off
|
||||
REM Build-Script fuer AnwesenheitPDF.exe
|
||||
REM
|
||||
REM Ergebnis:
|
||||
REM build/ - temporaere PyInstaller-Artefakte
|
||||
REM dist/ - fertiges Programmverzeichnis (AnwesenheitPDF.exe + alle Abhaengigkeiten)
|
||||
REM
|
||||
REM Voraussetzungen:
|
||||
REM pip install -r requirements-dev.txt
|
||||
|
||||
cd /d "%~dp0"
|
||||
|
||||
echo.
|
||||
echo === AnwesenheitPDF Build ===
|
||||
echo.
|
||||
|
||||
echo [1/2] Abhaengigkeiten installieren...
|
||||
pip install -r requirements.txt --quiet && pip install -r requirements-dev.txt --quiet
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo [FEHLER] pip install fehlgeschlagen.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo [2/2] Build starten...
|
||||
echo.
|
||||
|
||||
python -m PyInstaller ^
|
||||
--noconfirm ^
|
||||
--onedir ^
|
||||
--windowed ^
|
||||
--distpath dist ^
|
||||
--workpath build ^
|
||||
--specpath build ^
|
||||
--icon "%~dp0assets\icon.ico" ^
|
||||
--add-data "%~dp0template;template" ^
|
||||
--add-data "%~dp0config.json;." ^
|
||||
--add-data "%~dp0schema.json;." ^
|
||||
--add-data "%~dp0assets;assets" ^
|
||||
--name "AnwesenheitPDF" ^
|
||||
gui.py
|
||||
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo.
|
||||
echo [FEHLER] Build fehlgeschlagen.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [OK] Build abgeschlossen.
|
||||
echo Programm: dist\AnwesenheitPDF\AnwesenheitPDF.exe
|
||||
echo.
|
||||
pause
|
||||
Reference in new issue
Block a user