HTML5: Handle GODOT_VERSION_STATUS env var in @GODOT_VERSION@

Follow-up to #51002.
This commit is contained in:
Rémi Verschelde 2021-08-19 15:01:22 +02:00
parent 8b6c168b3a
commit 16f49d4b29
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -24,7 +24,10 @@ def get_build_version():
v = "%d.%d" % (version.major, version.minor)
if version.patch > 0:
v += ".%d" % version.patch
v += ".%s.%s" % (version.status, name)
status = version.status
if os.getenv("GODOT_VERSION_STATUS") != None:
status = str(os.getenv("GODOT_VERSION_STATUS"))
v += ".%s.%s" % (status, name)
return v