From 92c1dc317cf749499db9f66d18157834a7c5a39f Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sat, 15 Feb 2020 14:07:54 +0800 Subject: [PATCH] v2ray: compress by toolchain upx --- package/lean/v2ray/Config.in | 2 +- package/lean/v2ray/Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package/lean/v2ray/Config.in b/package/lean/v2ray/Config.in index 914555ab7..99c6d4c4b 100644 --- a/package/lean/v2ray/Config.in +++ b/package/lean/v2ray/Config.in @@ -27,7 +27,7 @@ config V2RAY_EXCLUDE_ASSETS config V2RAY_COMPRESS_UPX bool "Compress executable files with UPX" - default n + default y choice prompt "Disable Features" diff --git a/package/lean/v2ray/Makefile b/package/lean/v2ray/Makefile index 53fae32e4..c45932bd4 100644 --- a/package/lean/v2ray/Makefile +++ b/package/lean/v2ray/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=v2ray PKG_VERSION:=4.22.1 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_BUILD_DIR:=$(BUILD_DIR)/v2ray-core-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-core-$(PKG_VERSION).tar.gz @@ -264,7 +264,7 @@ define Build/Compile mv -f $(GO_PKG_BUILD_BIN_DIR)/main $(GO_PKG_BUILD_BIN_DIR)/v2ray ifeq ($(CONFIG_V2RAY_COMPRESS_UPX),y) - upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/v2ray + $(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/v2ray endif ifneq ($(CONFIG_V2RAY_EXCLUDE_V2CTL),y)