mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -04:00
* update notifications for sysinfo script
This commit is contained in:
parent
9ded478e66
commit
1beb424560
@ -78,3 +78,18 @@ println String.format('%d-bit %s', com.sun.jna.Platform.is64Bit() ? 64 : 32, _sy
|
|||||||
|
|
||||||
// Windows 7 (x86)
|
// Windows 7 (x86)
|
||||||
println String.format('%s (%s)', _system['os.name'], _system['os.arch'])
|
println String.format('%s (%s)', _system['os.name'], _system['os.arch'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// check for updates
|
||||||
|
try {
|
||||||
|
def update = new net.sourceforge.filebot.web.CachedXmlResource(net.sourceforge.filebot.Settings.getApplicationProperty('update.url')).get().xml
|
||||||
|
def latestRev = update.revision.text() as int
|
||||||
|
def latestApp = update.name.text()
|
||||||
|
|
||||||
|
if (latestRev > net.sourceforge.filebot.Settings.applicationRevisionNumber) {
|
||||||
|
println "\n--- UPDATE AVAILABLE: $latestApp (r$latestRev) ---\n"
|
||||||
|
}
|
||||||
|
} catch(Throwable error) {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user