mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02:00
Fix the ldflags attempt #2
This commit is contained in:
parent
f3f01583a1
commit
f7c95f95b4
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ acttest:
|
|||||||
release:
|
release:
|
||||||
expr `cat VERSION` + 1 > VERSION
|
expr `cat VERSION` + 1 > VERSION
|
||||||
git add 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 tag v0.`cat VERSION`
|
||||||
git push
|
git push
|
||||||
git push --tags
|
git push --tags
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
GIT_HASH=$(git rev-parse HEAD)
|
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\""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user