[HTML5] Fix editor version numbering.

Should not write patch version when it's `0`.
This commit is contained in:
Fabio Alessandrelli 2021-03-20 14:35:28 +01:00
parent 62e134a0c0
commit 60f2166c27

View File

@ -21,7 +21,11 @@ def get_build_version():
name = "custom_build"
if os.getenv("BUILD_NAME") != None:
name = os.getenv("BUILD_NAME")
return "%d.%d.%d.%s.%s" % (version.major, version.minor, version.patch, version.status, name)
v = "%d.%d" % (version.major, version.minor)
if version.patch > 0:
v += ".%d" % version.patch
v += ".%s.%s" % (version.status, name)
return v
def create_engine_file(env, target, source, externs):