From f7fd77bcd5c2bbfd1176a761eb3f2af067526015 Mon Sep 17 00:00:00 2001 From: makamys Date: Wed, 13 Jul 2022 16:04:10 +0200 Subject: Update buildscript [skip ci] --- publish/get_version.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/publish/get_version.py b/publish/get_version.py index 32f27ce..19923e7 100644 --- a/publish/get_version.py +++ b/publish/get_version.py @@ -11,4 +11,8 @@ if os.path.exists(versionPath): else: ver = subprocess.run(["git", "describe", "--tags", "--dirty"], capture_output=True, text=True).stdout or "UNKNOWN-" + subprocess.run(["git", "describe", "--always", "--dirty"], capture_output=True, text=True).stdout or "UNKNOWN" -print(ver.strip()) +ver = ver.strip() +if ver[0] == "v": + ver = ver[1:] + +print(ver) -- cgit