mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 03:48:07 -06:00
put version in binary properly
This commit is contained in:
parent
87cf621e21
commit
daa96eb247
9 changed files with 36 additions and 10 deletions
8
build.sh
Executable file
8
build.sh
Executable file
|
|
@ -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…
Add table
Add a link
Reference in a new issue