Compare commits

...

4 Commits

Author SHA1 Message Date
madonuko 3ea22528bd fix(throne): update with upstream build method 2026-06-17 18:01:59 +08:00
madomado 0e821cdfcf move to proper location
Signed-off-by: madomado <madonuko@outlook.com>
2026-06-16 19:55:47 +08:00
madomado 86bd5eb058 Merge branch 'frawhide' into mado/fix/throne 2026-06-15 21:33:40 +08:00
madomado 448ad0d511 fix(throne): I guess we could try go mod tidy?
fix #13044 

Signed-off-by: madomado <madonuko@outlook.com>
2026-06-12 14:14:05 +08:00
+4 -4
View File
@@ -69,11 +69,11 @@ DEST=$PWD/%{__cmake_builddir}/%{core}
pushd core/server
export GOBIN=$(pwd)/gobin
export PATH="${PATH}:${GOBIN}"
%define currentgoldflags -w -s -X github.com/sagernet/sing-box/constant.Version=%{singbox_version}
# https://github.com/throneproj/Throne/blob/dev/script/build_go.sh
%define currentgoldflags -w -s -X github.com/sagernet/sing-box/constant.Version=%{singbox_version} -X 'internal/godebug.defaultGODEBUG=multipathtcp=0' -checklinkname=0
%define gomodulesmode GO111MODULE=on
%define build_ldflags %nil
export GO_LDFLAGS=' '
export GO_BUILDTAGS="with_clash_api with_gvisor with_quic with_wireguard with_utls with_dhcp with_tailscale"
export GO_BUILDTAGS="with_clash_api with_gvisor with_quic with_wireguard with_utls with_dhcp with_tailscale badlinkname tfogo_checklinkname0 with_naive_outbound"
go mod tidy
%gobuild -o $DEST -mod=readonly -modcacherw
popd