aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-07-13 16:04:10 +0200
committermakamys <makamys@outlook.com>2022-07-13 16:04:10 +0200
commitf7fd77bcd5c2bbfd1176a761eb3f2af067526015 (patch)
treeb066262c99e3e3db4cbfddae37d1e5956c0f9407
parentf80f8cab96f897ca65ff35cce78286074ab7292f (diff)
downloadNeodymium-f7fd77bcd5c2bbfd1176a761eb3f2af067526015.tar.gz
Neodymium-f7fd77bcd5c2bbfd1176a761eb3f2af067526015.tar.bz2
Neodymium-f7fd77bcd5c2bbfd1176a761eb3f2af067526015.zip
Update buildscript [skip ci]
-rw-r--r--publish/get_version.py6
1 files changed, 5 insertions, 1 deletions
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)