mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-23 01:06:17 +00:00
The update check now also outputs the new version's description.
This commit is contained in:
parent
3db48864bc
commit
5b9de9d7cc
@ -67,6 +67,9 @@ public class CommandLineRunner {
|
|||||||
System.out.println("Available: " + v.version);
|
System.out.println("Available: " + v.version);
|
||||||
System.out.println("Get it here: " + v.url);
|
System.out.println("Get it here: " + v.url);
|
||||||
System.out.println();
|
System.out.println();
|
||||||
|
System.out.println("Changes in this version:");
|
||||||
|
System.out.println(v.body);
|
||||||
|
System.out.println();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (true || CommandLineOptions.cmd_console) {
|
if (true || CommandLineOptions.cmd_console) {
|
||||||
|
@ -90,7 +90,7 @@ public class Utils {
|
|||||||
|
|
||||||
int result = compareVersions(cur_v, new_v);
|
int result = compareVersions(cur_v, new_v);
|
||||||
|
|
||||||
return new Version(new_v, newest_version.getAsJsonPrimitive("html_url").getAsString(), result == VERSION_2_NEWER);
|
return new Version(new_v, newest_version.getAsJsonPrimitive("html_url").getAsString(), newest_version.getAsJsonPrimitive("body").getAsString(), result == VERSION_2_NEWER);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
|
@ -19,11 +19,13 @@ package de.fabianonline.telegram_backup;
|
|||||||
public class Version {
|
public class Version {
|
||||||
public final String version;
|
public final String version;
|
||||||
public final String url;
|
public final String url;
|
||||||
|
public final String body;
|
||||||
public final boolean isNewer;
|
public final boolean isNewer;
|
||||||
|
|
||||||
public Version(String v, String u, boolean n) {
|
public Version(String v, String u, String b, boolean n) {
|
||||||
this.version = v;
|
this.version = v;
|
||||||
this.url = u;
|
this.url = u;
|
||||||
|
this.body = b;
|
||||||
this.isNewer = n;
|
this.isNewer = n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user