keyvent/build.sh
2026-02-10 17:34:09 +01:00

15 lines
327 B
Bash
Executable file

#!/usr/bin/env bash
BIN_NAME=keyvent
VERSION=$(git describe --tags)
if [ $VERSION = "" ]; then
VERSION="dev"
fi
printf "Compiling version ${VERSION} for linux/amd64 "
GOOS=linux GOARCH=amd64 go build -ldflags "-X 'main.Version=${VERSION}'" -o ./dist/${VERSION}/${BIN_NAME}
echo
echo Output dir: ./dist/${VERSION}/