arblant
railway-clean-ip-scanner-pc / build-windows.bat
build-windows.bat19 lines · 390 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
@echo off
REM Build RailwayScannerPC.exe (one-file, windowed) with PyInstaller.
REM Run on Windows with Python 3.10+ installed.
setlocal

python -m pip install --upgrade pyinstaller
if errorlevel 1 goto :error

python -m PyInstaller RailwayScannerPC.spec
if errorlevel 1 goto :error

echo.
echo Build finished: dist\RailwayScannerPC.exe
exit /b 0

:error
echo.
echo Build FAILED.
exit /b 1