aboutsummaryrefslogtreecommitdiff
path: root/publish/update_updatejson.py
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-07-13 15:20:11 +0200
committermakamys <makamys@outlook.com>2022-07-13 15:20:11 +0200
commit2f9da90753a299bd0966efa0cb6f8a12e7a4e37a (patch)
treee470558ce6744e7613b80e3f304165f605460d09 /publish/update_updatejson.py
parent722b63430a4b9bf4257aec5ac1876228f434e15b (diff)
downloadNeodymium-2f9da90753a299bd0966efa0cb6f8a12e7a4e37a.tar.gz
Neodymium-2f9da90753a299bd0966efa0cb6f8a12e7a4e37a.tar.bz2
Neodymium-2f9da90753a299bd0966efa0cb6f8a12e7a4e37a.zip
buildscript: Compute version from git tag if version.txt is absent
Diffstat (limited to 'publish/update_updatejson.py')
-rw-r--r--publish/update_updatejson.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/publish/update_updatejson.py b/publish/update_updatejson.py
index 8d751e5..b381729 100644
--- a/publish/update_updatejson.py
+++ b/publish/update_updatejson.py
@@ -7,7 +7,7 @@ jsonPath = "../updatejson/update.json"
fullFormat = "updateJsonFullVersionFormat=true" in open("gradle.properties", "r", encoding="utf8").read()
data = json.load(open(jsonPath, "r", encoding="utf8"))
-ver = open("version.txt", "r").read().strip()
+ver = subprocess.run("python3 get_version.py", capture_output=True, text=True).stdout.strip()
for gameVer in json.load(open("gameVersions.json", "r")).keys():
modVer = "{}".format(ver) if not fullFormat else "{}-{}".format(gameVer, ver)