From 4e805be3870f36d5b35ecb285166f3befdda2a87 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Mon, 13 Apr 2026 02:47:24 +0800 Subject: [PATCH] Update Makefile --- sing-box/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sing-box/Makefile b/sing-box/Makefile index a46dc42e..86992cbb 100644 --- a/sing-box/Makefile +++ b/sing-box/Makefile @@ -126,6 +126,13 @@ GO_PKG_TAGS:=$(subst $(space),$(comma),$(strip \ define Package/sing-box/conffiles endef +define Build/Compile + $(call GoPackage/Build/Compile) +ifneq ($(filter arm mipsel mips,$(ARCH)),) + $(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/sing-box +endif +endef + define Package/sing-box/install $(call GoPackage/Package/Install/Bin,$(1)) endef