|
|
|
@ -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) { |
|
|
|
|