Browse Source

REPORT-3741 mac下demo无法启动

master
vito 7 years ago
parent
commit
6f2e3a2f04
  1. 4
      designer_base/src/com/fr/start/Demo.java

4
designer_base/src/com/fr/start/Demo.java

@ -18,7 +18,7 @@ public class Demo {
String executorPath; String executorPath;
if (OperatingSystem.isMacOS()) { if (OperatingSystem.isMacOS()) {
executorPath = StableUtils.pathJoin(installHome, "bin", "designer.app --args demo"); executorPath = StableUtils.pathJoin(installHome, "bin", "designer.app");
} else { } else {
executorPath = StableUtils.pathJoin(installHome, "bin", "designer.exe demo"); executorPath = StableUtils.pathJoin(installHome, "bin", "designer.exe demo");
} }
@ -28,7 +28,7 @@ public class Demo {
if (OperatingSystem.isMacOS()) { if (OperatingSystem.isMacOS()) {
ProcessBuilder builder = new ProcessBuilder(); ProcessBuilder builder = new ProcessBuilder();
builder.command("open -a", executorPath); builder.command("open", "-a", executorPath, "--args", "demo");
try { try {
builder.start(); builder.start();
} catch (IOException e) { } catch (IOException e) {

Loading…
Cancel
Save