JAL-3631 Create a jalview_x_update link in appdir/bin alongside jalview_x in install4...
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 15 Aug 2024 20:31:02 +0000 (21:31 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 15 Aug 2024 20:31:02 +0000 (21:31 +0100)
utils/install4j/install4j10_template.install4j

index 90d20d3..6369d95 100644 (file)
@@ -2219,7 +2219,7 @@ return sb.toString();
               </group>
               <group name="Jalview bin symlink" id="2946" beanClass="com.install4j.runtime.beans.groups.ActionGroup">
                 <beans>
-                  <action name="Linux/Unix Jalview bin dir symlink" id="2945" beanClass="com.install4j.runtime.beans.actions.files.CreateSymlinkAction" rollbackBarrierExitCode="0" errorMessage="Could not make symlink to wrapper script">
+                  <action name="Linux/Unix jalview.sh bin dir symlink" id="2945" beanClass="com.install4j.runtime.beans.actions.files.CreateSymlinkAction" rollbackBarrierExitCode="0" errorMessage="Could not make symlink to wrapper script">
                     <serializedBean>
                       <property name="file">
                         <object class="java.io.File">
@@ -2234,6 +2234,21 @@ return sb.toString();
                     </serializedBean>
                     <condition>Util.isLinux() || Util.isUnixInstaller() || Util.isMacOS()</condition>
                   </action>
+                  <action name="Linux/Unix update.sh bin dir symlink" id="3079" beanClass="com.install4j.runtime.beans.actions.files.CreateSymlinkAction" rollbackBarrierExitCode="0" errorMessage="Could not make symlink to wrapper script">
+                    <serializedBean>
+                      <property name="file">
+                        <object class="java.io.File">
+                          <string>${compiler:WRAPPER_SCRIPT_BIN_DIR}/${compiler:BASH_UPDATE_SCRIPT}</string>
+                        </object>
+                      </property>
+                      <property name="linkFile">
+                        <object class="java.io.File">
+                          <string>${compiler:WRAPPER_SCRIPT_BIN_DIR}/${compiler:WRAPPER_LINK}_update</string>
+                        </object>
+                      </property>
+                    </serializedBean>
+                    <condition>Util.isLinux() || Util.isUnixInstaller() || Util.isMacOS()</condition>
+                  </action>
                 </beans>
               </group>
               <action id="3020" beanClass="com.install4j.runtime.beans.actions.control.SetProgressAction" actionElevationType="none" rollbackBarrierExitCode="0">