mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
[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.
(cherry picked from commit 4404eb57e4)
This commit is contained in:
committed by
Rémi Verschelde
parent
6f77f1bb3e
commit
e3664e971b
@@ -96,7 +96,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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user