mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-06 18:25:32 +00:00
updater strips out download type suffix
This commit is contained in:
@@ -740,6 +740,9 @@ public class Main {
|
||||
String downVersion = "NEW";
|
||||
if (downloadName.startsWith(shortApplicationName + " version ")) {
|
||||
downVersion = downloadName.substring((shortApplicationName + " version ").length());
|
||||
if (downVersion.contains(" ")) {
|
||||
downVersion = downVersion.substring(0, downVersion.indexOf(" "));
|
||||
}
|
||||
}
|
||||
if (link.startsWith("<a href=\"")) {
|
||||
link = link.substring(link.indexOf("\"") + 1);
|
||||
@@ -780,7 +783,7 @@ public class Main {
|
||||
try {
|
||||
Logger logger = Logger.getLogger("");
|
||||
logger.setLevel(debug ? Level.CONFIG : Level.WARNING);
|
||||
FileHandler fileTxt = new FileHandler(Configuration.getASDecHome()+File.separator+"log.txt");
|
||||
FileHandler fileTxt = new FileHandler(Configuration.getASDecHome() + File.separator + "log.txt");
|
||||
|
||||
SimpleFormatter formatterTxt = new SimpleFormatter();
|
||||
fileTxt.setFormatter(formatterTxt);
|
||||
|
||||
Reference in New Issue
Block a user