Skip to content

Commit

Permalink
Add ldflags to 'go build' cmd to bring back version number
Browse files Browse the repository at this point in the history
  • Loading branch information
dotcs committed May 6, 2022
1 parent 13561bd commit 65f9a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/release
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 65f9a6b

Please sign in to comment.