Update Makefile

This commit is contained in:
kiddin9 2026-04-13 02:47:24 +08:00 committed by GitHub
parent 2ee3cec8e0
commit 4e805be387
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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