radio station selector. uses mpv to play.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
415 B

#!/usr/bin/env sh
GOPATH=$HOME/go
GOPATH=$GOPATH:$(pwd)
export GOPATH
GIT_COMMIT=$(git rev-list -1 HEAD)
export GIT_COMMIT
CANONICAL_VERSION=$(cat ./VERSION)-$(uname)
export CANONICAL_VERSION
VERSION_STRING="$CANONICAL_VERSION-$GIT_COMMIT"
export VERSION_STRING
buildpath="build/$(uname)/gostations"
go mod vendor
go mod tidy
go build -o "$buildpath" -ldflags "-X main.version=$VERSION_STRING"
"$buildpath" -v