mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 03:43:29 +00:00
v2ray: compress by toolchain upx
This commit is contained in:
parent
a237f50d1d
commit
92c1dc317c
@ -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"
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user