From c7700e858f43320287f498a81ff1f5775b099852 Mon Sep 17 00:00:00 2001 From: esrrhs Date: Thu, 22 Apr 2021 13:24:02 +0800 Subject: [PATCH] add --- pack.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pack.sh b/pack.sh index 22a8e28..58f67ae 100755 --- a/pack.sh +++ b/pack.sh @@ -11,8 +11,6 @@ rm pack -rf rm pack.zip -f mkdir pack -go get -u -v github.com/esrrhs/pingtunnel/... - for line in $build_list; do os=$(echo "$line" | awk -F"/" '{print $1}') arch=$(echo "$line" | awk -F"/" '{print $2}') @@ -23,6 +21,9 @@ for line in $build_list; do if [ $os == "ios" ]; then continue fi + if [ $arch == "wasm" ]; then + continue + fi CGO_ENABLED=0 GOOS=$os GOARCH=$arch go build -ldflags="-s -w" if [ $? -ne 0 ]; then echo "os="$os" arch="$arch" build fail"