构建脚本

This commit is contained in:
骑着蜗牛追导弹 2022-03-01 13:34:45 +08:00
parent f63f91d98e
commit a7ab300ae6
9 changed files with 18 additions and 0 deletions

1
scripts/linux/build.sh Normal file
View File

@ -0,0 +1 @@
go build -o app ../../

View File

@ -0,0 +1 @@
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o app ../../

View File

@ -0,0 +1 @@
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o app ../../

1
scripts/mac/build.sh Normal file
View File

@ -0,0 +1 @@
go build -o app ../../

View File

@ -0,0 +1 @@
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app ../../

View File

@ -0,0 +1 @@
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o app ../../

2
scripts/win/build.bat Normal file
View File

@ -0,0 +1,2 @@
@echo off
go build -o app ../../

View File

@ -0,0 +1,5 @@
@echo off
SET CGO_ENABLED=0
SET GOOS=linux
SET GOARCH=amd64
go build -o app ../../

View File

@ -0,0 +1,5 @@
@echo off
SET CGO_ENABLED=0
SET GOOS=darwin
SET GOARCH=amd64
go build -o app ../../