Merge pull request #377 from eliasku/patch-1
fix for new haxe 3.2 Sys.command escaping
This commit is contained in:
@@ -82,32 +82,7 @@ class FlashPlatform extends PlatformTarget {
|
||||
|
||||
}
|
||||
|
||||
if (PlatformHelper.hostPlatform == Platform.MAC) {
|
||||
|
||||
for (i in 0...args.length) {
|
||||
|
||||
if (args[i].indexOf ("(") > -1) {
|
||||
|
||||
var arg = StringTools.replace (args[i], "'", "'\\''");
|
||||
//arg = StringTools.replace (arg, " ", "' '");
|
||||
|
||||
args[i] = "'" + arg + "'";
|
||||
|
||||
} else if (args[i].indexOf (" ") > -1) {
|
||||
|
||||
args[i] = "\"" + args[i] + "\"";
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ProcessHelper.runCommand ("", "haxe " + args.join (" "), []);
|
||||
|
||||
} else {
|
||||
|
||||
ProcessHelper.runCommand ("", "haxe", args);
|
||||
|
||||
}
|
||||
ProcessHelper.runCommand ("", "haxe", args);
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user