From 61e3fe21ff745d4da0069cd4aab3b6e214837db9 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 25 Apr 2020 09:27:22 -0400 Subject: [PATCH] Add 'SNAPSHOT' to version when building locally, as this is not an "official" build --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3b43f631..c95444e7 100644 --- a/Makefile +++ b/Makefile @@ -77,13 +77,13 @@ check_node_env: .PHONY: check_node_env build: check_go_env - go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=$(GIT_TAG)" + go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" .PHONY: build buildall: 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=$(GIT_TAG)" -tags=embed + go build -ldflags="-X github.com/deluan/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/deluan/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=embed .PHONY: buildall release: