@echo off REM Builds watch_remote_top.py into a standalone Windows .exe using PyInstaller. REM Run this ON WINDOWS, in the same folder as watch_remote_top.py. echo Installing/updating build dependencies (pyinstaller, paramiko)... pip install --upgrade pyinstaller paramiko if errorlevel 1 ( echo pip install failed. Make sure Python and pip are installed and on PATH. pause exit /b 1 ) echo. echo Building watch_remote_top.exe ... REM --onefile : single .exe, no extra files needed alongside it REM --console : keep the console window (needed for input()/getpass prompts) REM --collect-all paramiko : bundles paramiko's crypto backends, which PyInstaller REM sometimes misses with plain --hidden-import pyinstaller --onefile --console --name watch_remote_top --collect-all paramiko watch_remote_top.py if errorlevel 1 ( echo Build failed - see errors above. pause exit /b 1 ) echo. echo Done. Executable is at: dist\watch_remote_top.exe echo You can copy that single file anywhere - no Python install needed to run it. pause