HTML5Helper: need to chmod +x node when running terser on non-Windows platforms
This commit is contained in:
@@ -194,6 +194,11 @@ class HTML5Helper
|
|||||||
].concat(project.templatePaths);
|
].concat(project.templatePaths);
|
||||||
executable = System.findTemplate(templatePaths, "bin/node/node" + suffix);
|
executable = System.findTemplate(templatePaths, "bin/node/node" + suffix);
|
||||||
terser = System.findTemplate(templatePaths, "bin/node/terser/bin/terser");
|
terser = System.findTemplate(templatePaths, "bin/node/terser/bin/terser");
|
||||||
|
|
||||||
|
if (System.hostPlatform != WINDOWS)
|
||||||
|
{
|
||||||
|
Sys.command("chmod", ["+x", executable]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var args = [
|
var args = [
|
||||||
|
|||||||
Reference in New Issue
Block a user