mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-12 04:22:22 +00:00
9 lines
180 B
Bash
9 lines
180 B
Bash
|
#!/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
|