|
@@ -1,11 +1,10 @@
|
|
|
NAME = sing-box
|
|
|
COMMIT = $(shell git rev-parse --short HEAD)
|
|
|
-TAGS ?= with_gvisor,with_dhcp,with_wireguard,with_clash_api,with_quic,with_utls,with_acme,with_tailscale
|
|
|
-TAGS_TEST ?= with_gvisor,with_quic,with_wireguard,with_grpc,with_utls
|
|
|
+TAGS ?= with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_acme,with_clash_api,with_tailscale
|
|
|
|
|
|
GOHOSTOS = $(shell go env GOHOSTOS)
|
|
|
GOHOSTARCH = $(shell go env GOHOSTARCH)
|
|
|
-VERSION=$(shell CGO_ENABLED=0 GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) go run ./cmd/internal/read_tag)
|
|
|
+VERSION=$(shell CGO_ENABLED=0 GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) go run github.com/sagernet/sing-box/cmd/internal/read_tag@latest)
|
|
|
|
|
|
PARAMS = -v -trimpath -ldflags "-X 'github.com/sagernet/sing-box/constant.Version=$(VERSION)' -s -w -buildid="
|
|
|
MAIN_PARAMS = $(PARAMS) -tags "$(TAGS)"
|