🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Set version correctly when building locally
Deluan2ec5e4732810
diff --git a/Makefile b/Makefileindex 801fa2c9a..3b43f6311 100644--- a/Makefile+++ b/Makefile@@ -2,6 +2,7 @@ GO_VERSION=$(shell grep -e "^go " go.mod | cut -f 2 -d ' ')NODE_VERSION=$(shell cat .nvmrc)GIT_SHA=$(shell git rev-parse --short HEAD)+GIT_TAG=$(shell git describe --tags `git rev-list --tags --max-count=1`)## Default target just build the Go project.default:@@ -76,13 +77,13 @@ check_node_env:.PHONY: check_node_envbuild: check_go_env- go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=master"+ go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=$(GIT_TAG)".PHONY: buildbuildall: check_env@(cd ./ui && npm run build)go-bindata -fs -prefix "ui/build" -tags embed -nocompress -pkg assets -o assets/embedded_gen.go ui/build/...- go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=master" -tags=embed+ go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=$(GIT_TAG)" -tags=embed.PHONY: buildallrelease: