@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