From 65f9a6bfe77f407bb052ba46901d34007971729c Mon Sep 17 00:00:00 2001 From: dotcs Date: Fri, 6 May 2022 20:29:17 +0200 Subject: [PATCH] Add ldflags to 'go build' cmd to bring back version number Closes #97 --- script/release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/release b/script/release index 4c24eec..31aad60 100755 --- a/script/release +++ b/script/release @@ -43,7 +43,7 @@ for ARCH in "amd64" "386" "arm64"; do rm -f ${BINFILE} - GOOS=${OS} GOARCH=${ARCH} go build github.com/${USER}/${REPO} + GOOS=${OS} GOARCH=${ARCH} go build -ldflags "-X main.gronVersion=${VERSION}" github.com/${USER}/${REPO} if [[ "${OS}" == "windows" ]]; then ARCHIVE="${BINARY}-${OS}-${ARCH}-${VERSION}.zip"