mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
[HTML5] Fix editor version numbering.
Should not write patch version when it's `0`.
This commit is contained in:
parent
62e134a0c0
commit
60f2166c27
@ -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 New Issue
Block a user