Browse Source

Merge pull request #1415 in BA/design from ~VITO/design:release/8.0 to release/8.0

* commit '83ffaf32185b3616730b9b63add489a100e7a860':
  无jira任务 修复8.0 mac下demo无法启动的问题。
superman 8 years ago
parent
commit
8b1c3b9819
  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