Fix the ldflags attempt #2

This commit is contained in:
David Dworken 2022-04-16 21:29:59 -07:00
parent f3f01583a1
commit f7c95f95b4
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ acttest:
release:
expr `cat VERSION` + 1 > VERSION
git add VERSION
git commit -m "Bump hishtory version"
git commit -m "Bump hishtory version to `cat VERSION`"
git tag v0.`cat VERSION`
git push
git push --tags

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
GIT_HASH=$(git rev-parse HEAD)
echo "-X main.GitCommit=$GIT_HASH -X lib.Version=`cat VERSION` -w -extldflags \"-static\""
echo "-X main.GitCommit=$GIT_HASH -X github.com/ddworken/hishtory/client/lib.Version=`cat VERSION` -w -extldflags \"-static\""