Skip to content

Commit

Permalink
HTML5: Handle GODOT_VERSION_STATUS env var in @GODOT_VERSION@
Browse files Browse the repository at this point in the history
Follow-up to godotengine#51002.
  • Loading branch information
akien-mga committed Aug 19, 2021
1 parent 8b6c168 commit 16f49d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform/javascript/emscripten_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 16f49d4

Please sign in to comment.