From: Ben Soares Date: Wed, 28 Aug 2024 10:53:00 +0000 (+0100) Subject: JAL-3631 Adjustments to allow setting the Advanced options in the response.varfile... X-Git-Tag: Release_2_11_4_0~14^2~8^2~3 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=acb90325e4fde76fbe1d67b80f451a76353908bd;p=jalview.git JAL-3631 Adjustments to allow setting the Advanced options in the response.varfile. Also big improvement on setting sys.fileAssociation.launchers automatically so only sys.fileAssociation.extensions needs to be set in a response.varfile. --- diff --git a/utils/install4j/install4j10_template.install4j b/utils/install4j/install4j10_template.install4j index 6369d95..39f5b4a 100644 --- a/utils/install4j/install4j10_template.install4j +++ b/utils/install4j/install4j10_template.install4j @@ -679,6 +679,8 @@ public static final String getCanonicalFullPathToDirectoryHash(String installerA + + Util.isLinux() || Util.isUnixInstaller() || ( Util.isMacosInstaller() && context.getBooleanVariable("isAdmin") ) @@ -741,6 +743,8 @@ return MacOSDir; + + Boolean.FALSE @@ -751,6 +755,8 @@ return MacOSDir; + + Boolean.TRUE @@ -761,6 +767,8 @@ return MacOSDir; + + Boolean.FALSE @@ -771,6 +779,8 @@ return MacOSDir; + + "" @@ -781,6 +791,8 @@ return MacOSDir; + + Boolean.FALSE @@ -888,6 +900,25 @@ return true; context.isConsole() || context.isUnattended() + + + + + String[] extensions = (String[]) context.getVariable("sys.fileAssociation.extensions"); +if (extensions == null) { + return false; +} +int num = extensions.length; +String[] launchers = new String[num]; +for (int i = 0; i < num; i++) { + launchers[i] = "JALVIEW"; +} +context.setVariable("sys.fileAssociation.launchers", launchers); +return true; + + + +