Files
JoyD/AutoRobot/Windows/Robot/build.bat

15 lines
262 B
Batchfile
Raw Normal View History

@echo off
cls
REM build.bat - 编译Go项目
setlocal
set GOOS=windows
set GOARCH=amd64
echo 正在编译...
go build -o Robot.exe main.go
if %errorlevel% neq 0 (
echo 编译失败!
exit /b %errorlevel%
)
echo 编译成功,生成 Robot.exe
exit /b 0