chore: pack official released sing-box

This commit is contained in:
arm64v8a
2022-08-26 17:31:43 +08:00
parent de35011220
commit 6873a7e1ba

View File

@@ -32,12 +32,8 @@ if [ "$GOOS" != "windows" ]; then
exit
fi
#### Go: sing-box ####
pushd $DEST
curl -Lso sing-box.zip https://github.com/SagerNet/sing-box/archive/64dbac813837bbadfaeec1a6e0d064875a123e5e.zip
#### Go ext: sing-box ####
curl -Lso sing-box.zip https://github.com/SagerNet/sing-box/releases/download/v1.0-beta1/sing-box-1.0-beta1-windows-amd64.zip
unzip sing-box.zip
pushd sing-box-*/cmd/sing-box
go build -o $DEST -trimpath -ldflags "-w -s"
popd
mv sing-box-*/sing-box.exe $DEST
rm -rf sing-box.zip sing-box-*
popd