@echo off
echo Building VPN Client for Windows...

go mod download
go build -ldflags="-s -w" -o vpn-client.exe main.go

if %ERRORLEVEL% EQU 0 (
    echo.
    echo Build successful!
    echo Executable: vpn-client.exe
) else (
    echo.
    echo Build failed!
    exit /b 1
)

pause
