From 6873a7e1ba7a77b33d51b6f96e317e740c4e79a7 Mon Sep 17 00:00:00 2001 From: arm64v8a <48624112+arm64v8a@users.noreply.github.com> Date: Fri, 26 Aug 2022 17:31:43 +0800 Subject: [PATCH] chore: pack official released sing-box --- libs/build_go.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/libs/build_go.sh b/libs/build_go.sh index 767e0ff..6d36481 100755 --- a/libs/build_go.sh +++ b/libs/build_go.sh @@ -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