Skip to content
Snippets Groups Projects
Commit c047afb7 authored by tobias's avatar tobias
Browse files

Update JNA Path and LaunchDialog Height

parent 89a6a509
Branches
Tags
No related merge requests found
......@@ -111,6 +111,7 @@ public class LaunchDialog extends ViewController implements ProfileChooseable {
stage.setResizable(false);
stage.setWidth(650);
stage.setHeight(400);
stage.show();
}
......
......@@ -88,12 +88,12 @@ public class AwakePluginImpl implements AwakePlugin, WindowListener<IMainViewCon
public void onDisable() {
System.out.println("Disable Awake Plugin");
}
// TODO Server path anpassen mit UpdateChannel
private Path loadLibMac() throws IOException {
Path folder = ApplicationUtils.getApplication().getPath(PathType.LIBRARY, "awakelib.dylib");
if (Files.notExists(folder)) {
Files.createFile(folder);
URL url = new URL(ApplicationUtils.getApplication().getInfo().getUpdateURL() + "/plugins/libAwake/libAwakeLib.dylib");
URL url = new URL(ApplicationUtils.getApplication().getInfo().getUpdateURL() + "/stable/plugins/libAwake/libAwakeLib.dylib");
System.out.println("Downlaod " + url);
IOUtils.copy(url.openStream(), folder);
}
......@@ -108,14 +108,14 @@ public class AwakePluginImpl implements AwakePlugin, WindowListener<IMainViewCon
if (Files.notExists(jnaFile)) {
Files.createDirectories(folder);
URL url = new URL(ApplicationUtils.getApplication().getInfo().getUpdateURL() + "/plugins/jna/jna.jar");
URL url = new URL(ApplicationUtils.getApplication().getInfo().getUpdateURL() + "/stable/plugins/jna/jna.jar");
System.out.println("Downlaod " + url);
IOUtils.copy(url.openStream(), jnaFile);
}
if (Files.notExists(jnaPlatformFile)) {
Files.createDirectories(folder);
URL url = new URL(ApplicationUtils.getApplication().getInfo().getUpdateURL() + "/plugins/jna/jna-platform.jar");
URL url = new URL(ApplicationUtils.getApplication().getInfo().getUpdateURL() + "/stable/plugins/jna/jna-platform.jar");
System.out.println("Downlaod " + url);
IOUtils.copy(url.openStream(), jnaPlatformFile);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment