Add standalone build and packaging workflow docs/scripts
This commit is contained in:
24
build/build_windows.cmd
Normal file
24
build/build_windows.cmd
Normal file
@@ -0,0 +1,24 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
cd /d "%~dp0\.."
|
||||
|
||||
set "PYTHON_BIN=.venv\Scripts\python.exe"
|
||||
if not exist "%PYTHON_BIN%" (
|
||||
echo ❌ Python nicht gefunden: %PYTHON_BIN%
|
||||
echo 💡 Erwartet wird eine Virtual Environment unter .venv
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo 🪟 Erstelle Windows-Standalone mit PyInstaller...
|
||||
"%PYTHON_BIN%" -m pip install --upgrade pip pyinstaller
|
||||
|
||||
"%PYTHON_BIN%" -m PyInstaller ^
|
||||
--noconfirm ^
|
||||
--clean ^
|
||||
--name "PDFtoICS" ^
|
||||
--windowed ^
|
||||
--add-data "version.txt;." ^
|
||||
gui_wxpython.py
|
||||
|
||||
echo ✅ Fertig: dist\PDFtoICS\PDFtoICS.exe
|
||||
Reference in New Issue
Block a user