recompile pt1

This commit is contained in:
Fangoboyo 2022-06-08 19:15:51 -07:00
parent 66630da1ac
commit fa7c9d9018
2 changed files with 8 additions and 11 deletions

View File

@ -32,17 +32,14 @@ public class Installer {
public static void InstallUpdater() throws IOException { public static void InstallUpdater() throws IOException {
File file = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginUpdater.jar"); File file = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginUpdater.jar");
System.out.println("Check 1 passed"); System.out.println("Check 1 passed");
if (!(file.exists())) { try {
System.out.println("Check 2 passed"); InputStream in = URI.create("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar")
try { .toURL().openStream();
InputStream in = URI.create("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar") System.out.println("Check 3 passed");
.toURL().openStream(); Installer ins = new Installer();
System.out.println("Check 3 passed"); ins.InstallPlugin(in, "EaglerPluginUpdater");
Installer ins = new Installer(); } catch (IOException e) {
ins.InstallPlugin(in, "EaglerPluginUpdater"); System.out.println("Invalid Link");
} catch (IOException e) {
System.out.println("Invalid Link");
}
} }
} }
} }