HTML5Helper: need to chmod +x node when running terser on non-Windows platforms

This commit is contained in:
Josh Tynjala
2023-05-18 14:59:04 -07:00
parent 309b28ec18
commit 4458cefeb2

View File

@@ -194,6 +194,11 @@ class HTML5Helper
].concat(project.templatePaths);
executable = System.findTemplate(templatePaths, "bin/node/node" + suffix);
terser = System.findTemplate(templatePaths, "bin/node/terser/bin/terser");
if (System.hostPlatform != WINDOWS)
{
Sys.command("chmod", ["+x", executable]);
}
}
var args = [