v2ray: compress by toolchain upx

This commit is contained in:
coolsnowwolf 2020-02-15 14:07:54 +08:00
parent a237f50d1d
commit 92c1dc317c
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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)