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