@echo off
echo Building BackendService.exe with PyInstaller...

:: Ensure pyinstaller is installed
pip install pyinstaller

:: Build the executable
:: --noconsole hides the command prompt window
:: --onefile packages everything into a single .exe
:: --name sets the output file name
pyinstaller --noconsole --onefile --name "BackendService" main.py

echo Build complete. Check the \dist\ folder for BackendService.exe.
pause
