#!/bin/bash

echo "Building VPN Client..."

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

if [ $? -eq 0 ]; then
    echo ""
    echo "Build successful!"
    echo "Executable: vpn-client"
    chmod +x vpn-client
else
    echo ""
    echo "Build failed!"
    exit 1
fi
