Browse Source

Merge pull request #1076 in BA/design from ~VITO/design:release/9.0 to release/9.0

* commit '6f2e3a2f0462bb9d87e0246c4e6e6aa8ae0a7f8f':
  REPORT-3741 mac下demo无法启动
master
superman 7 years ago
parent
commit
2cf78add40
  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