mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
Add with_wireguard to default server tag
This commit is contained in:
parent
f46bfcc3d8
commit
9378fc88d2
|
@ -8,7 +8,7 @@ ENV CGO_ENABLED=0
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add git build-base \
|
&& apk add git build-base \
|
||||||
&& export COMMIT=$(git rev-parse HEAD) \
|
&& export COMMIT=$(git rev-parse HEAD) \
|
||||||
&& go build -v -trimpath -tags 'with_quic,with_acme,with_wireguard,with_clash_api' \
|
&& go build -v -trimpath -tags 'no_gvisor,with_quic,with_wireguard,with_acme' \
|
||||||
-o /go/bin/sing-box \
|
-o /go/bin/sing-box \
|
||||||
-ldflags "-X github.com/sagernet/sing-box/constant.Commit=${COMMIT} -w -s -buildid=" \
|
-ldflags "-X github.com/sagernet/sing-box/constant.Commit=${COMMIT} -w -s -buildid=" \
|
||||||
./cmd/sing-box
|
./cmd/sing-box
|
||||||
|
|
|
@ -10,7 +10,7 @@ DIR=$(dirname "$0")
|
||||||
PROJECT=$DIR/../..
|
PROJECT=$DIR/../..
|
||||||
|
|
||||||
pushd $PROJECT
|
pushd $PROJECT
|
||||||
go install -v -trimpath -ldflags "-s -w -buildid=" -tags "no_gvisor" ./cmd/sing-box
|
go install -v -trimpath -ldflags "-s -w -buildid=" -tags no_gvisor,with_quic,with_wireguard,with_acme ./cmd/sing-box
|
||||||
popd
|
popd
|
||||||
|
|
||||||
sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
|
sudo cp $(go env GOPATH)/bin/sing-box /usr/local/bin/
|
||||||
|
|
|
@ -10,7 +10,7 @@ DIR=$(dirname "$0")
|
||||||
PROJECT=$DIR/../..
|
PROJECT=$DIR/../..
|
||||||
|
|
||||||
pushd $PROJECT
|
pushd $PROJECT
|
||||||
go install -v -trimpath -ldflags "-s -w -buildid=" -tags no_gvisor,with_quic,with_acme ./cmd/sing-box
|
go install -v -trimpath -ldflags "-s -w -buildid=" -tags no_gvisor,with_quic,with_wireguard,with_acme ./cmd/sing-box
|
||||||
popd
|
popd
|
||||||
|
|
||||||
sudo systemctl stop sing-box
|
sudo systemctl stop sing-box
|
||||||
|
|
Loading…
Reference in a new issue