mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-04-01 22:14:01 +03:00
parent
70b09a9ad0
commit
fc0de10b59
1 changed files with 4 additions and 7 deletions
|
@ -122,15 +122,12 @@ public void invoke(String... args) throws Exception {
|
|||
|
||||
try (Writer writer = IOHelper.newWriter(startScript)) {
|
||||
if (JVMHelper.OS_TYPE == JVMHelper.OS.LINUX) {
|
||||
writer.append("#!/bin/bash");
|
||||
writer.append(System.lineSeparator());
|
||||
writer.append(System.lineSeparator());
|
||||
writer.append("#!/bin/bash\n\n");
|
||||
}
|
||||
|
||||
writer.append(System.lineSeparator());
|
||||
writer.append("\"");
|
||||
writer.append(IOHelper.resolveJavaBin(Paths.get(System.getProperty("java.home")), true).toAbsolutePath().toString());
|
||||
writer.append(System.lineSeparator());
|
||||
writer.append(" ");
|
||||
writer.append("\" ");
|
||||
|
||||
if (agentClassName != null) {
|
||||
writer.append("-javaagent:ServerWrapper.jar ");
|
||||
|
@ -149,7 +146,7 @@ public void invoke(String... args) throws Exception {
|
|||
|
||||
writer.append(" ");
|
||||
writer.append(ServerWrapper.class.getName());
|
||||
writer.append(System.lineSeparator());
|
||||
writer.append("\n");
|
||||
}
|
||||
|
||||
if (JVMHelper.OS_TYPE != JVMHelper.OS.MUSTDIE) {
|
||||
|
|
Loading…
Reference in a new issue