PlatformSetup: openfl alias setup on Linux was missing try/catch, but lime alias setup and other platforms had it
This commit is contained in:
@@ -1113,21 +1113,25 @@ class PlatformSetup
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
System.runCommand("", "sudo", [
|
try
|
||||||
"cp",
|
{
|
||||||
"-f",
|
System.runCommand("", "sudo", [
|
||||||
Haxelib.getPath(new Haxelib("lime")) + "/templates/bin/lime.sh",
|
"cp",
|
||||||
"/usr/local/bin/lime"
|
"-f",
|
||||||
], false);
|
Haxelib.getPath(new Haxelib("lime")) + "/templates/bin/lime.sh",
|
||||||
System.runCommand("", "sudo", ["chmod", "755", "/usr/local/bin/lime"], false);
|
"/usr/local/bin/lime"
|
||||||
System.runCommand("", "sudo", [
|
], false);
|
||||||
"cp",
|
System.runCommand("", "sudo", ["chmod", "755", "/usr/local/bin/lime"], false);
|
||||||
"-f",
|
System.runCommand("", "sudo", [
|
||||||
System.findTemplate(project.templatePaths, "bin/openfl.sh"),
|
"cp",
|
||||||
"/usr/local/bin/openfl"
|
"-f",
|
||||||
], false);
|
System.findTemplate(project.templatePaths, "bin/openfl.sh"),
|
||||||
System.runCommand("", "sudo", ["chmod", "755", "/usr/local/bin/openfl"], false);
|
"/usr/local/bin/openfl"
|
||||||
installedCommand = true;
|
], false);
|
||||||
|
System.runCommand("", "sudo", ["chmod", "755", "/usr/local/bin/openfl"], false);
|
||||||
|
installedCommand = true;
|
||||||
|
}
|
||||||
|
catch (e:Dynamic) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user