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:
commit
4f53e8a9e8
|
@ -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 New Issue