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/