Commit c6cdc7c6 authored by superblaubeere27's avatar superblaubeere27

Fixed autoupdate problems

parent d6b13fc2
......@@ -53,7 +53,7 @@
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<configuration>
<headerType>gui</headerType>
<icon>src/main/resources/icon.ico</icon>
<jar>target/${project.name}-${project.version}.jar</jar>
......
......@@ -45,6 +45,7 @@ public class LiquidLauncher {
public static final String LAUNCHER_OPENSOURCE_PROJECT = "https://git.liquidbounce.net/CCBlueX/LiquidLauncherV2";
private static final double LAUNCHER_VERSION = 1.0;
public static final String LAUNCHER_VERSION_STRING = "v" + LAUNCHER_VERSION + "-SNAPSHOT";
private static final String LIQUIDLAUNCHER_DOWNLOAD = "https://ci.liquidbounce.net/job/LiquidLauncher/";
public static LiquidLauncher liquidLauncher;
public static MenuInterface menuInterface;
private static File configFile;
......@@ -381,7 +382,7 @@ public class LiquidLauncher {
double latestVersion = Double.parseDouble(NetworkUtils.readContent("https://raw.githubusercontent.com/CCBlueX/FileCloud/master/LiquidLauncher/latestVersion.txt"));
if (LAUNCHER_VERSION < latestVersion) {
LOGGER.info("Launcher is not up to date");
JOptionPane.showMessageDialog(menuInterface, String.format("Your launcher is outdated: currentVersion: %s latestVersion: %s", LAUNCHER_VERSION, latestVersion), "Launcher is outdated", JOptionPane.INFORMATION_MESSAGE);
JOptionPane.showMessageDialog(menuInterface, String.format("Your launcher is outdated: currentVersion: %s latestVersion: %s\nPlease download it from " + LIQUIDLAUNCHER_DOWNLOAD, LAUNCHER_VERSION, latestVersion), "Launcher is outdated", JOptionPane.INFORMATION_MESSAGE);
} else {
LOGGER.info("Launcher is up to date");
}
......
......@@ -10,6 +10,7 @@ import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* Project: LiquidLauncher
* Copyright © 2015 - 2017 | CCBlueX | All rights reserved.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment