erm/scripts/build.sh

8 lines
261 B
Bash
Raw Normal View History

2021-07-30 22:29:20 +00:00
#!/bin/bash
version=$(git describe --exact-match --tags 2>/dev/null || git describe 2>/dev/null || echo "prerelease")
go build \
-mod=vendor\
-ldflags="-X github.com/liamg/darktile/internal/app/darktile/version.Version=${version}" \
./cmd/darktile