You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
510 B

echo "linux"
@REM 设置环境变量linux
set GOARCH=amd64
go env -w GOARCH=amd64
set GOOS=linux
go env -w GOOS=linux
@REM 这里注意修改文件名------------------------
go build -o release/aichat-api aichat.go
echo "windows"
@REM 设置环境回到windows
set GOOS=windows
go env -w GOOS=windows
set GOARCH=amd64
go env -w GOARCH=amd64
@REM 这里注意修改文件名------------------------
go build -o release/aichat-api.exe aichat.go