minor refactor

This commit is contained in:
Nova 2025-02-12 14:59:50 +03:30
parent 331c1b03b8
commit aedf4e2201
60 changed files with 4 additions and 4 deletions

View File

@ -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})

View File

@ -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