This commit is contained in:
wenyifan 2023-11-21 10:45:52 +08:00
parent 4fc5fd03a5
commit 993609b31e

View File

@ -1,4 +1,6 @@
#!/bin/sh
echo Start Build
echo Windows
export GOOS=windows
export GOARCH=amd64
go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost.exe
@ -6,6 +8,7 @@ go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost.exe
export GOARCH=386
go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost_x86.exe
echo Linux
export GOOS=linux
export GOARCH=amd64
go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost
@ -13,7 +16,7 @@ go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost
export GOARCH=386
go build -buildvcs=false -ldflags "-w -s" -trimpath -a -o gost_x86
echo Android
export ANDROID_NDK_ROOT=$PWD/../../../android-ndk-r23b
export GOOS=android
export CGO_ENABLED=1