From f64ecc59e004673f640c07fbc42bdeced2b3449f Mon Sep 17 00:00:00 2001 From: kuoruan Date: Thu, 14 Feb 2019 17:10:36 +0800 Subject: [PATCH] v2ray-core: Set build version to OpenWrt Signed-off-by: kuoruan --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5d33273..2fbe361 100644 --- a/Makefile +++ b/Makefile @@ -114,7 +114,7 @@ $(call Package/v2ray-assets/install,$(1)) $(INSTALL_DIR) $(1)/usr/bin ( \ for component in $(V2RAY_COMPONENTS); do \ - $(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/$$$$component $(1)/usr/bin ; \ + $(INSTALL_BIN) $(GO_PKG_BUILD_BIN_DIR)/$$$$component $(1)/usr/bin ; \ done ; \ ) endef @@ -134,6 +134,12 @@ endef define Build/Prepare $(Build/Prepare/Default) + ( \ + build="OpenWrt - Release $(PKG_RELEASE)" ; \ + sed -i \ + "s/\(build[[:space:]]*=[[:space:]]*\"\).*\(\"\)/\1$$$$build\2/" \ + $(PKG_BUILD_DIR)/core.go ; \ + ) endef define Build/Compile