Browse Source
Addresses #71 : Set version on the CLI framework. Add a build.sh script that injects variables into the build tooling using git and a version file. Set version in config.pull/74/head
9 changed files with 38 additions and 11 deletions
@ -0,0 +1,8 @@
|
||||
#!/bin/sh |
||||
|
||||
set -eu |
||||
|
||||
export COMMIT=$(git rev-list -1 HEAD) |
||||
export VERSION=$(cat ./version) |
||||
|
||||
go build -ldflags="-X 'main.Commit=$COMMIT' -X 'main.Version=$VERSION'" ./cmd/gotosocial |
||||
Loading…
Reference in new issue