summaryrefslogtreecommitdiffstats
path: root/platform/javascript/SCsub
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-02-26 15:04:40 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-02-26 15:08:47 +0100
commit4404eb57e447a5a177af86cfd7cf2607e682bf36 (patch)
tree7b347f406b1504fa820078e92c3977ee14a4dea2 /platform/javascript/SCsub
parentd7e6c20c82df9179bc4e9b7706dc7a09ee554974 (diff)
downloadredot-engine-4404eb57e447a5a177af86cfd7cf2607e682bf36.tar.gz
[HTML5] Make editor HTML build tag scons4-proof.
We used to have it like `$GODOT_VERSION` which caused inconsistencies between different scons versions when substituting it. It's now `@GODOT_VERSION@`, which is safe on both scons3 and scons4.
Diffstat (limited to 'platform/javascript/SCsub')
-rw-r--r--platform/javascript/SCsub2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/SCsub b/platform/javascript/SCsub
index ab527ef419..e9ec531cc7 100644
--- a/platform/javascript/SCsub
+++ b/platform/javascript/SCsub
@@ -97,7 +97,7 @@ out_files = [
]
html_file = "#misc/dist/html/full-size.html"
if env["tools"]:
- subst_dict = {"\$GODOT_VERSION": env.GetBuildVersion()}
+ subst_dict = {"@GODOT_VERSION@": env.GetBuildVersion()}
html_file = env.Substfile(
target="#bin/godot${PROGSUFFIX}.html", source="#misc/dist/html/editor.html", SUBST_DICT=subst_dict
)