* no update checks for webstart and fatjars
This commit is contained in:
parent
05a7fbb1af
commit
228b3db8f5
|
@ -117,7 +117,7 @@ public class Main {
|
|||
MediaTypes.getDefault();
|
||||
|
||||
// check for application updates (only when installed, i.e. not running via fatjar or webstart)
|
||||
if (System.getProperty("application.deployment") != null) {
|
||||
if (!isPortableDeployment()) {
|
||||
checkUpdate();
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -137,6 +137,12 @@ public final class Settings {
|
|||
}
|
||||
|
||||
|
||||
public static boolean isPortableDeployment() {
|
||||
String deployment = getApplicationDeployment();
|
||||
return deployment == null || deployment.equals("webstart");
|
||||
}
|
||||
|
||||
|
||||
public static int getApplicationRevisionNumber() {
|
||||
try {
|
||||
Manifest manifest = new Manifest(Settings.class.getResourceAsStream("/META-INF/MANIFEST.MF"));
|
||||
|
|
Loading…
Reference in New Issue