HTML5: Handle GODOT_VERSION_STATUS env var in @GODOT_VERSION@
Follow-up to #51002.
(cherry picked from commit 16f49d4b29
)
This commit is contained in:
parent
9f0d7b70fd
commit
c906afe045
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,10 @@ def get_build_version():
|
||||||
v = "%d.%d" % (version.major, version.minor)
|
v = "%d.%d" % (version.major, version.minor)
|
||||||
if version.patch > 0:
|
if version.patch > 0:
|
||||||
v += ".%d" % version.patch
|
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
|
return v
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue