Merge pull request #51885 from akien-mga/html5-GODOT_VERSION_STATUS

HTML5: Handle `GODOT_VERSION_STATUS` env var in `@GODOT_VERSION@`
This commit is contained in:
Fabio Alessandrelli 2021-08-19 16:29:22 +02:00 committed by GitHub
commit 4f53e8a9e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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