mirror of
https://github.com/darverdevs/PluginInstaller.git
synced 2024-11-22 09:16:06 -08:00
recomp
This commit is contained in:
parent
ccba90707f
commit
0369a72916
Binary file not shown.
|
@ -32,7 +32,7 @@ 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");
|
||||||
if (!(file.exists())) {
|
if (!(file.exists())) {
|
||||||
URL plugin = URI.create("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginUpdater.jar")
|
URL plugin = URI.create("https://github.com/darverdevs/EaglerPluginUpdater/raw/main/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar")
|
||||||
.toURL();
|
.toURL();
|
||||||
InputStream in = plugin.openStream();
|
InputStream in = plugin.openStream();
|
||||||
Files.copy(in, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
Files.copy(in, file.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user