mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2026-01-04 02:29:02 +08:00
Update build_go.sh
This commit is contained in:
parent
202f117c3e
commit
dfa8e493ef
@ -26,7 +26,7 @@ popd
|
|||||||
#### Go: core ####
|
#### Go: core ####
|
||||||
pushd core/server
|
pushd core/server
|
||||||
pushd gen
|
pushd gen
|
||||||
update_proto.sh
|
protoc -I . --go_out=. --go_opt paths=source_relative --go-grpc_out=. --go-grpc_opt paths=source_relative libcore.proto
|
||||||
popd
|
popd
|
||||||
VERSION_SINGBOX=$(go list -m -f '{{.Version}}' github.com/sagernet/sing-box)
|
VERSION_SINGBOX=$(go list -m -f '{{.Version}}' github.com/sagernet/sing-box)
|
||||||
go build -v -o $DEST -trimpath -ldflags "-w -s -X 'github.com/sagernet/sing-box/constant.Version=${VERSION_SINGBOX}'" -tags "with_clash_api,with_gvisor,with_quic,with_wireguard,with_utls,with_ech,with_dhcp"
|
go build -v -o $DEST -trimpath -ldflags "-w -s -X 'github.com/sagernet/sing-box/constant.Version=${VERSION_SINGBOX}'" -tags "with_clash_api,with_gvisor,with_quic,with_wireguard,with_utls,with_ech,with_dhcp"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user