
@echo off
echo Building executable for Windows...

REM Check if pyinstaller is installed
python -c "import pyinstaller" 2>nul
if %errorlevel% neq 0 (
    echo PyInstaller not found. Please install it first using:
    echo pip install -r requirements.txt
    exit /b 1
)

pyinstaller --name OpenPortKiller --onefile --windowed --icon=NONE main.py

echo.
echo Build complete. Executable is located in the 'dist' folder.
pause
