增加 build脚本

This commit is contained in:
dengsgo 2019-04-04 14:44:43 +08:00
parent 72807c78a9
commit 86923ffdab

12
mac-build-all Executable file
View File

@ -0,0 +1,12 @@
export CGO_ENABLED=0
export GOARCH=amd64
export GOOS=darwin
go build -ldflags "-s -w" -o fileboy-darwin-amd64.bin
echo darwin ok
export GOOS=linux
go build -ldflags "-s -w" -o fileboy-linux-amd64.bin
echo linux ok
export GOOS=windows
go build -ldflags "-s -w" -o fileboy-windows-amd64.exe
echo windows ok