Browse Source

HTML5: Handle GODOT_VERSION_STATUS env var in @GODOT_VERSION@

Follow-up to #51002.

(cherry picked from commit 16f49d4b295a7ed0d5c7faf9dc52e1f479aeb40f)
Rémi Verschelde 4 years ago
parent
commit
c906afe045
1 changed files with 4 additions and 1 deletions
  1. 4 1
      platform/javascript/emscripten_helpers.py

+ 4 - 1
platform/javascript/emscripten_helpers.py

@@ -24,7 +24,10 @@ def get_build_version():
     v = "%d.%d" % (version.major, version.minor)
     if version.patch > 0:
         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