This commit is contained in:
esrrhs 2021-04-22 13:24:02 +08:00
parent 1632aa4389
commit c7700e858f

View File

@ -11,8 +11,6 @@ rm pack -rf
rm pack.zip -f rm pack.zip -f
mkdir pack mkdir pack
go get -u -v github.com/esrrhs/pingtunnel/...
for line in $build_list; do for line in $build_list; do
os=$(echo "$line" | awk -F"/" '{print $1}') os=$(echo "$line" | awk -F"/" '{print $1}')
arch=$(echo "$line" | awk -F"/" '{print $2}') arch=$(echo "$line" | awk -F"/" '{print $2}')
@ -23,6 +21,9 @@ for line in $build_list; do
if [ $os == "ios" ]; then if [ $os == "ios" ]; then
continue continue
fi fi
if [ $arch == "wasm" ]; then
continue
fi
CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w" CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "os="$os" arch="$arch" build fail" echo "os="$os" arch="$arch" build fail"