From 081d25ddf6b610d56c14c2f6ee84bb78461d73fc Mon Sep 17 00:00:00 2001 From: Elias Ku Date: Sun, 22 Mar 2015 09:46:18 +0300 Subject: [PATCH] fix for new haxe 3.2 Sys.command escaping https://github.com/openfl/lime/issues/376 --- lime/tools/platforms/FlashPlatform.hx | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/lime/tools/platforms/FlashPlatform.hx b/lime/tools/platforms/FlashPlatform.hx index 3d6917b2a..37e479ae7 100644 --- a/lime/tools/platforms/FlashPlatform.hx +++ b/lime/tools/platforms/FlashPlatform.hx @@ -81,33 +81,8 @@ 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 {