add
This commit is contained in:
parent
1632aa4389
commit
c7700e858f
5
pack.sh
5
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"
|
||||
|
Loading…
Reference in New Issue
Block a user