build_linux.bat 343 B

123456789101112131415
  1. @echo off
  2. REM Set the environment variables for cross-compilation
  3. set GOOS=linux
  4. set GOARCH=amd64
  5. REM Build the Go program
  6. go build -o zoraxy_linux_amd64
  7. REM Check if the build was successful
  8. if %ERRORLEVEL% neq 0 (
  9. echo Build failed.
  10. exit /b %ERRORLEVEL%
  11. )
  12. echo Build succeeded. The output file is zoraxy_linux_amd64.