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"