Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
esrrhs committed Apr 22, 2021
1 parent 3a7900e commit 12360f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ for line in $build_list; do
os=$(echo "$line" | awk -F"/" '{print $1}')
arch=$(echo "$line" | awk -F"/" '{print $2}')
echo "os="$os" arch="$arch" start build"
if [ $os == "android" ]; then
continue
fi
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"
Expand Down

0 comments on commit 12360f4

Please sign in to comment.