[HTML5] Fix editor version numbering.
Should not write patch version when it's `0`.
(cherry picked from commit 60f2166c27
)
This commit is contained in:
parent
f8a1801fbc
commit
be9b0e0b73
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue