From 6d462a68c3cc6a34a42e32569cf792488722176a Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Mon, 13 Apr 2026 02:49:48 +0800 Subject: [PATCH] Update Makefile --- xray-core/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xray-core/Makefile b/xray-core/Makefile index b9a8b57f3..5e6d11466 100644 --- a/xray-core/Makefile +++ b/xray-core/Makefile @@ -52,6 +52,13 @@ define Package/xray-core/conffiles /etc/config/xray 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)/xray +endif +endef + define Package/xray-core/install $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) $(INSTALL_DIR) $(1)/usr/bin/