JAL-3588 Auto insert of Examples folder into DMG and an attempt to style both the...
[jalview.git] / utils / install4j / install4j8_template.install4j
index eb585d9..b1372e9 100644 (file)
@@ -33,7 +33,8 @@
       <variable name="INTERNAL_ID" value="Jalview" />
       <variable name="WINDOWS_APPLICATION_ID" value="6595-2347-1923-0725" />
       <variable name="MACOS_DS_STORE" value="DS_Store" />
-      <variable name="MACOS_DMG_BG_IMAGE" />
+      <variable name="MACOS_DMG_BG_IMAGE" value="jalview_dmg_background.png" />
+      <variable name="EXAMPLES_FOLDER" value="Examples" />
       <variable name="INSTALLER_NAME" value="Jalview Installer" />
       <variable name="INSTALL4J_UTILS_DIR" value="utils/install4j" />
       <variable name="GETDOWN_WEBSITE_DIR" value="getdown/website" />
@@ -395,7 +396,7 @@ return console.askOkCancel(message, true);
                   <property name="programGroupEntryConfigs">
                     <add>
                       <object class="com.install4j.runtime.beans.screens.components.ProgramGroupFileConfig">
-                        <property name="name" type="string">Examples</property>
+                        <property name="name" type="string">${compiler:EXAMPLES_FOLDER}</property>
                         <property name="target">
                           <object class="java.io.File">
                             <string>examples</string>
@@ -1139,6 +1140,7 @@ return console.askYesNo(message, true);
         <file name="${compiler:JALVIEW_APPLICATION_NAME}.app/Contents/Resources/Jalview-File.icns" file="${compiler:JALVIEW_DIR}/${compiler:INSTALL4J_UTILS_DIR}/Jalview-File.icns" />
         <file name="${compiler:JALVIEW_APPLICATION_NAME}.app/Contents/Resources/Jalview-Launch.icns" file="${compiler:JALVIEW_DIR}/${compiler:INSTALL4J_UTILS_DIR}/Jalview-Launch.icns" />
         <symlink name="Uninstall Old Jalview (optional).app" target="${compiler:JALVIEW_APPLICATION_NAME}.app/Contents/Resources/app/Uninstall Old Jalview.app" />
+        <file name="${compiler:EXAMPLES_FOLDER}" file="EXAMPLES_FOLDER_PLACEHOLDER" />
       </topLevelFiles>
     </macosArchive>
     <unixInstaller name="Linux x64 Shell Installer" id="1595" mediaFileName="${compiler:UNIX_APPLICATION_FOLDER}-${compiler:JALVIEW_VERSION}-linux_x64-java_${compiler:JAVA_INTEGER_VERSION}" installDir="${compiler:UNIX_APPLICATION_FOLDER}" customInstallBaseDir="~/opt/">