neko/server/build

11 lines
417 B
Plaintext
Raw Permalink Normal View History

2020-01-20 14:37:32 +00:00
#!/bin/bash
2020-04-19 01:12:49 +00:00
set -ex
2020-01-13 08:05:38 +00:00
BUILD_TIME=`date -u +'%Y-%m-%dT%H:%M:%SZ'`
GIT_COMMIT=`git rev-parse --short HEAD`
GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
GIT_DIRTY=`git diff-index --quiet HEAD -- || echo "✗-"`
2021-10-05 22:38:24 +02:00
go build -o bin/neko -ldflags "-s -X 'm1k1o/neko.buildDate=${BUILD_TIME}' -X 'm1k1o/neko.gitCommit=${GIT_DIRTY}${GIT_COMMIT}' -X 'm1k1o/neko.gitBranch=${GIT_BRANCH}'" -i cmd/neko/main.go