From ff372e33cc5bd113cd90a810b08b2da8e50e6809 Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Mon, 13 Apr 2026 06:08:00 +0800 Subject: [PATCH] Delete .github/diy/patches/upx.patch --- .github/diy/patches/upx.patch | 103 ---------------------------------- 1 file changed, 103 deletions(-) delete mode 100644 .github/diy/patches/upx.patch diff --git a/.github/diy/patches/upx.patch b/.github/diy/patches/upx.patch deleted file mode 100644 index e2d6a7ae0..000000000 --- a/.github/diy/patches/upx.patch +++ /dev/null @@ -1,103 +0,0 @@ ---- a/sing-box/Makefile -+++ b/sing-box/Makefile -@@ -29,7 +29,7 @@ PKG_CONFIG_DEPENDS:= \ - CONFIG_SING_BOX_BUILD_V2RAY_API \ - CONFIG_SING_BOX_BUILD_WIREGUARD - --PKG_BUILD_DEPENDS:=golang/host -+PKG_BUILD_DEPENDS:=golang/host upx/host - PKG_BUILD_PARALLEL:=1 - PKG_BUILD_FLAGS:=no-mips16 - -@@ -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 - ---- a/xray-core/Makefile -+++ b/xray-core/Makefile -@@ -12,7 +12,7 @@ PKG_MAINTAINER:=Tianling Shen - PKG_LICENSE:=MPL-2.0 - PKG_LICENSE_FILES:=LICENSE - --PKG_BUILD_DEPENDS:=golang/host -+PKG_BUILD_DEPENDS:=golang/host upx/host - PKG_BUILD_PARALLEL:=1 - PKG_USE_MIPS16:=0 - PKG_BUILD_FLAGS:=no-mips16 -@@ -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)/main -+endif -+endef -+ - define Package/xray-core/install - $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) - $(INSTALL_DIR) $(1)/usr/bin/ - ---- a/mihomo/Makefile -+++ b/mihomo/Makefile -@@ -16,7 +16,7 @@ PKG_MAINTAINER:=Anya Lin - PKG_LICENSE:=GPL-2.0 - PKG_LICENSE_FILES:=LICENSE - --PKG_BUILD_DEPENDS:=golang/host -+PKG_BUILD_DEPENDS:=golang/host upx/host - PKG_BUILD_PARALLEL:=1 - PKG_BUILD_FLAGS:=no-mips16 - -@@ -49,6 +49,13 @@ define Build/Prepare - rm -f $(PKG_BUILD_DIR)/rules/logic_test/logic_test.go - 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)/mihomo -+endif -+endef -+ - define Package/mihomo/install - $(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) - $(CURDIR)/.prepare.sh $(VERSION) $(CURDIR) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) - ---- a/mosdns/Makefile -+++ b/mosdns/Makefile -@@ -16,7 +16,7 @@ PKG_LICENSE:=GPL-3.0 - PKG_LICENSE_FILE:=LICENSE - PKG_MAINTAINER:=Tianling Shen - --PKG_BUILD_DEPENDS:=golang/host -+PKG_BUILD_DEPENDS:=golang/host upx/host - PKG_BUILD_PARALLEL:=1 - PKG_BUILD_FLAGS:=no-mips16 - -@@ -35,6 +35,13 @@ define Package/mosdns - DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle - 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)/mosdns -+endif -+endef -+ - define Package/mosdns/install - $(call GoPackage/Package/Install/Bin,$(1)) - endef