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

Loading…
Cancel
Save