Update Makefile

This commit is contained in:
kiddin9 authored and GitHub committed 2026-04-13 02:49:48 +08:00
1 parent 4e805be387
commit 6d462a68c3
1 file changed
+7
+7
View File
@@ -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/