mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 03:43:29 +00:00
frp: reduce frpc bin size
This commit is contained in:
parent
f59423622a
commit
624ce076cb
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=frp
|
||||
PKG_VERSION:=0.25.3
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/fatedier/frp/tar.gz/v$(PKG_VERSION)?
|
||||
@ -78,6 +78,7 @@ endef
|
||||
|
||||
define Build/Compile
|
||||
$(call GoPackage/Build/Compile,-ldflags "-s -w")
|
||||
chmod +x $$(GO_PKG_BUILD_BIN_DIR)/frpc && upx --ultra-brute $$(GO_PKG_BUILD_BIN_DIR)/frpc
|
||||
endef
|
||||
|
||||
FRP_COMPONENTS:=frpc frps
|
||||
|
Loading…
Reference in New Issue
Block a user