From 2f9da90753a299bd0966efa0cb6f8a12e7a4e37a Mon Sep 17 00:00:00 2001 From: makamys Date: Wed, 13 Jul 2022 15:20:11 +0200 Subject: buildscript: Compute version from git tag if version.txt is absent --- publish/update_updatejson.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'publish/update_updatejson.py') 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) -- cgit