From 7b8a0faee17aa349e9147bbc9c23cdb9e846b190 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Mon, 12 Oct 2020 09:41:27 +0800 Subject: [PATCH] Fix user-package codename & buildtime error (#303) --- release/user-package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/user-package.sh b/release/user-package.sh index 938a8b5a1..a21f1419d 100755 --- a/release/user-package.sh +++ b/release/user-package.sh @@ -33,7 +33,7 @@ build_v2() { local VERSIONTAG=$(git describe --abbrev=0 --tags) fi - LDFLAGS="-s -w -buildid= -X v2ray.codename=${CODENAME} -X v2ray.build=${BUILDNAME} -X v2ray.version=${VERSIONTAG}" + LDFLAGS="-s -w -buildid= -X v2ray.com/core.codename=${CODENAME} -X v2ray.com/core.build=${BUILDNAME} -X v2ray.com/core.version=${VERSIONTAG}" echo ">>> Compile v2ray ..." env CGO_ENABLED=0 go build -o "$TMP"/v2ray"${EXESUFFIX}" -ldflags "$LDFLAGS" ./main