@echo off echo Building series3-watcher.exe... pip install pyinstaller pystray Pillow REM Check whether icon.ico exists alongside this script. REM If it does, include it; otherwise build without a custom icon. if exist "%~dp0icon.ico" ( pyinstaller --onefile --windowed --name series3-watcher --icon="%~dp0icon.ico" series3_tray.py ) else ( echo [INFO] icon.ico not found -- building without custom icon. pyinstaller --onefile --windowed --name series3-watcher series3_tray.py ) echo. echo Done. Check dist\series3-watcher.exe pause