
#!/bin/bash

echo "Building executable for Linux/macOS..."

# Check if pyinstaller is installed
if ! python -c "import pyinstaller" &> /dev/null; then
    echo "PyInstaller not found. Please install it first using:"
    echo "pip install -r requirements.txt"
    exit 1
fi

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

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