mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:42:51 +08:00
minor refactor
This commit is contained in:
parent
331c1b03b8
commit
aedf4e2201
@ -1,7 +1,7 @@
|
||||
find_package(Protobuf CONFIG REQUIRED)
|
||||
|
||||
set(PROTO_FILES
|
||||
core/cmd/nekobox_core/server/gen/libcore.proto
|
||||
core/server/gen/libcore.proto
|
||||
)
|
||||
|
||||
add_library(myproto STATIC ${PROTO_FILES})
|
||||
|
||||
@ -19,12 +19,12 @@ mkdir -p $DEST
|
||||
export CGO_ENABLED=0
|
||||
|
||||
#### Go: updater ####
|
||||
pushd core/cmd/updater
|
||||
pushd core/updater
|
||||
[ "$GOOS" == "darwin" ] || go build -o $DEST -trimpath -ldflags "-w -s"
|
||||
popd
|
||||
|
||||
#### Go: nekobox_core ####
|
||||
pushd core/cmd/nekobox_core
|
||||
#### Go: core ####
|
||||
pushd core/server
|
||||
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"
|
||||
popd
|
||||
|
||||
Loading…
Reference in New Issue
Block a user