增加 build脚本
This commit is contained in:
parent
72807c78a9
commit
86923ffdab
12
mac-build-all
Executable file
12
mac-build-all
Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user