X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=utils%2Finstall4j%2Finstall4j8_template.install4j;h=cf427c66464ddcfa051ec8a1d589581fc83c4435;hb=f550a2851efac4677abd69087245a3e74d966e98;hp=60366b394b58a62a0894cb86e80cf3220b0c3f1a;hpb=9e7c315c6ac828989a2d7f49dcb7e451f38df9ff;p=jalview.git diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index 60366b3..cf427c6 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -37,7 +37,6 @@ - @@ -57,7 +56,6 @@ - @@ -246,6 +244,35 @@ + + + + + String userHome = (String)context.getVariable("sys.userHome"); + +String[] tryPaths = new String[] { + "bin", + ".local" + File.separator + "bin", + "local" + File.separator + "bin", + "opt" + File.separator + "bin" +}; + +for (int i = 0; i < tryPaths.length; i++) { + String tryPath = tryPaths[i]; + File unixUserBinDir = new File(userHome + File.separator + tryPath); + if (unixUserBinDir.exists()) { + return tryPath; + } +} + +return null; + + + + unixUserBinDir + + Util.isLinux() || Util.isUnixInstaller() + @@ -492,7 +519,7 @@ return console.askOkCancel(message, true); - Creating file associations + Finished creating file associations @@ -533,20 +560,6 @@ return console.askOkCancel(message, true); - - - - - ${compiler:WRAPPER_SCRIPT_BIN_DIR}/${compiler:LINK_TO_WRAPPER_SCRIPT} - - - - - ${compiler:WRAPPER_SCRIPT_BIN_DIR}/${compiler:WRAPPER_LINK} - - - - @@ -604,6 +617,44 @@ return console.askOkCancel(message, true); context.getBooleanVariable("addToDockAction") + + + + + ${compiler:WRAPPER_SCRIPT_BIN_DIR}/${compiler:BASH_WRAPPER_SCRIPT} + + + + + ${compiler:WRAPPER_SCRIPT_BIN_DIR}/${compiler:WRAPPER_LINK} + + + + !Util.isWindows() + + + + + ${installer:sys.contentDir}\${compiler:WRAPPER_SCRIPT_BIN_DIR} + Path + + context.getBooleanVariable("appendToPathAction") + + + + + + ${installer:sys.contentDir}/${compiler:WRAPPER_SCRIPT_BIN_DIR}/${compiler:BASH_WRAPPER_SCRIPT} + + + + + ${installer:sys.userHome}/${installer:unixUserBinDir}/${compiler:WRAPPER_LINK} + + + + context.getBooleanVariable("makeSymbolicLink") && ( Util.isLinux() || Util.isUnixInstaller() ) && ( context.getVariable("unixUserBinDir") != null ) + @@ -626,6 +677,22 @@ return console.askOkCancel(message, true); Util.isMacOS() + + + Add ${compiler:JALVIEW_APPLICATION_NAME}'s bin folder to the Path environment variable + + appendToPathAction + + Util.isWindows() + + + + Make a ${compiler:WRAPPER_LINK} symbolic link in ~/${installer:unixUserBinDir} + + makeSymbolicLink + + ( Util.isLinux() || Util.isUnixInstaller() ) && ( context.getVariable("unixUserBinDir") != null ) + @@ -728,7 +795,7 @@ return console.askYesNo(message, true); - + jre @@ -919,6 +986,16 @@ return console.askYesNo(message, true); bin + + + channel.props + + + + + channel.propsv + + @@ -1178,7 +1255,7 @@ return console.askYesNo(message, true); - + @@ -1192,12 +1269,9 @@ return console.askYesNo(message, true); - - - - + @@ -1208,9 +1282,6 @@ return console.askYesNo(message, true); - - - @@ -1220,7 +1291,7 @@ return console.askYesNo(message, true); - + @@ -1234,12 +1305,9 @@ return console.askYesNo(message, true); - - - - + @@ -1253,12 +1321,9 @@ return console.askYesNo(message, true); - - - - + @@ -1272,9 +1337,6 @@ return console.askYesNo(message, true); - - -