From 60f2166c2702552233e6fdc5761ff40ab0e43b8c Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 20 Mar 2021 14:35:28 +0100 Subject: [PATCH] [HTML5] Fix editor version numbering. Should not write patch version when it's `0`. --- platform/javascript/emscripten_helpers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/javascript/emscripten_helpers.py b/platform/javascript/emscripten_helpers.py index 04fbba8a418..b3b15a15749 100644 --- a/platform/javascript/emscripten_helpers.py +++ b/platform/javascript/emscripten_helpers.py @@ -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):