|
@@ -30,7 +30,7 @@ def create_engine_file(env, target, source, externs, threads_enabled):
|
|
|
return env.Substfile(target=target, source=[env.File(s) for s in source], SUBST_DICT=subst_dict)
|
|
|
|
|
|
|
|
|
-def create_template_zip(env, js, wasm, worker, side):
|
|
|
+def create_template_zip(env, js, wasm, side):
|
|
|
binary_name = "godot.editor" if env.editor_build else "godot"
|
|
|
zip_dir = env.Dir(env.GetTemplateZipPath())
|
|
|
in_files = [
|
|
@@ -45,9 +45,6 @@ def create_template_zip(env, js, wasm, worker, side):
|
|
|
zip_dir.File(binary_name + ".audio.worklet.js"),
|
|
|
zip_dir.File(binary_name + ".audio.position.worklet.js"),
|
|
|
]
|
|
|
- if env["threads"]:
|
|
|
- in_files.append(worker)
|
|
|
- out_files.append(zip_dir.File(binary_name + ".worker.js"))
|
|
|
# Dynamic linking (extensions) specific.
|
|
|
if env["dlink_enabled"]:
|
|
|
in_files.append(side) # Side wasm (contains the actual Godot code).
|
|
@@ -66,8 +63,6 @@ def create_template_zip(env, js, wasm, worker, side):
|
|
|
"logo.svg",
|
|
|
"favicon.png",
|
|
|
]
|
|
|
- if env["threads"]:
|
|
|
- cache.append("godot.editor.worker.js")
|
|
|
opt_cache = ["godot.editor.wasm"]
|
|
|
subst_dict = {
|
|
|
"___GODOT_VERSION___": get_build_version(False),
|