X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=utils%2Finstall4j%2Finstall4j8_template.install4j;h=cf427c66464ddcfa051ec8a1d589581fc83c4435;hb=f550a2851efac4677abd69087245a3e74d966e98;hp=a02cd6da8ec99ebb4f46cab6c8675578a7eb3aec;hpb=ab2d7f57cf2a9540f99d26ac7268becab4c30539;p=jalview.git diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index a02cd6d..cf427c6 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -1,6 +1,6 @@ - - + + @@ -13,6 +13,7 @@ + @@ -32,8 +33,11 @@ - - + + + + + @@ -48,8 +52,36 @@ + + + + - + + + *.dylib + *.so + *.jnilib + unpack200 + tnameserv + servertool + rmiregistry + rmid + policytool + pack200 + orbd + keytool + jjs + java + jspawnhelper + libfreetype.dylib.6 + applet + jaotc + jfr + jrunscript + libjli.dylib + + @@ -57,14 +89,12 @@ - - @@ -72,16 +102,19 @@ - - + + + + + + - @@ -109,25 +142,20 @@ - - - - - - - + + - + - + @@ -140,13 +168,13 @@ ${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")} - + - + @@ -178,7 +206,7 @@ - ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/${compiler:BACKGROUND} @@ -216,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() + @@ -249,7 +306,7 @@ - ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/${compiler:BACKGROUND} @@ -462,7 +519,7 @@ return console.askOkCancel(message, true); - Creating file associations + Finished creating file associations @@ -515,13 +572,13 @@ return console.askOkCancel(message, true); - ${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico + ${compiler:JALVIEW_DIR}/${compiler:WINDOWS_ICONS_FILE} ${compiler:JALVIEW_NAME} - ${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png + ${compiler:JALVIEW_DIR}/${compiler:PNG_ICON_FILE} @@ -539,12 +596,12 @@ return console.askOkCancel(message, true); ${compiler:JALVIEW_APPLICATION_NAME} - ${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png + ${compiler:JALVIEW_DIR}/${compiler:PNG_ICON_FILE} - ${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico + ${compiler:JALVIEW_DIR}/${compiler:WINDOWS_ICONS_FILE} @@ -560,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 ) + @@ -582,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 ) + @@ -619,7 +730,7 @@ return console.askOkCancel(message, true); - ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/${compiler:BACKGROUND} @@ -684,7 +795,7 @@ return console.askYesNo(message, true); - + jre @@ -865,6 +976,26 @@ return console.askYesNo(message, true); build_* + + + ${compiler:WRAPPER_SCRIPT_BIN_DIR} + + + + + bin + + + + + channel.props + + + + + channel.propsv + + @@ -917,7 +1048,7 @@ return console.askYesNo(message, true); - ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/${compiler:BACKGROUND} @@ -1124,13 +1255,12 @@ return console.askYesNo(message, true); - + - @@ -1141,7 +1271,7 @@ return console.askYesNo(message, true); - + @@ -1154,20 +1284,19 @@ return console.askYesNo(message, true); - - + + - + - + - @@ -1178,13 +1307,12 @@ return console.askYesNo(message, true); - + - @@ -1195,13 +1323,12 @@ return console.askYesNo(message, true); - + -