From a37efb453dd6ee18aff55c4520a268ae3c19af12 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 8 Dec 2021 23:44:15 +0800 Subject: [PATCH] should also update the dev version file --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a70bae616..765e19e98 100644 --- a/Makefile +++ b/Makefile @@ -124,9 +124,12 @@ dist: static dist-bbgo-linux dist-bbgo-darwin desktop pkg/version/version.go: .FORCE bash utils/generate-version-file.sh > $@ - git commit $@ -m "bump version to $(VERSION)" || true -version: pkg/version/version.go migrations +pkg/version/dev.go: .FORCE + VERSION_SUFFIX="-dev" bash utils/generate-version-file.sh > $@ + +version: pkg/version/version.go pkg/version/dev.go migrations + git commit $< $(word 2,$^) -m "bump version to $(VERSION)" || true [[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1) git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add release note" || true git tag -f $(VERSION)