JAL-3394 jalviews scheme added
authorBen Soares <bsoares@dundee.ac.uk>
Thu, 12 Dec 2019 21:03:30 +0000 (21:03 +0000)
committerBen Soares <bsoares@dundee.ac.uk>
Thu, 12 Dec 2019 21:03:30 +0000 (21:03 +0000)
utils/install4j/auto_file_associations-i4j8.pl
utils/install4j/install4j8_template.install4j

index c418aad..e091681 100755 (executable)
@@ -217,24 +217,6 @@ for my $shortname (@ordered) {
 
 close(IA);
 print MA "</array>\n";
-# 
-# print MA "
-# <!-- BEGIN FROM PERL SCRIPT -->
-# <key>CFBundleURLTypes</key>
-# <array>
-# <dict>
-# <key>CFBundleURLName</key>
-# <string>org.jalview.jalview-desktop.url.jalview</string>
-# <key>CFBundleTypeRole</key>
-# <string>Editor</string>
-# <key>CFBundleURLSchemes</key>
-# <array>
-# <string>jalview</string>
-# </array>
-# </dict>
-# </array>
-# <!-- END FROM PERL SCRIPT -->
-# ";
 close(MA);
 
 sub xml_escape {
index c57474b..41a6ada 100644 (file)
       </java>
       <macStaticAssociationActions mode="selected">
         <id>2350</id>
+        <id>2450</id>
       </macStaticAssociationActions>
       <infoPlist>${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")}</infoPlist>
       <iconImageFiles>
           <scanDirectory location="${compiler:GETDOWN_DIST_DIR}" failOnError="false" />
         </classPath>
       </java>
-      <macStaticAssociationActions mode="selected" />
+      <macStaticAssociationActions mode="selected">
+        <id>2350</id>
+        <id>2450</id>
+      </macStaticAssociationActions>
       <infoPlist>${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")}</infoPlist>
       <iconImageFiles>
         <file path="../../resources/images/JalviewLogo_Huge.png" />
@@ -435,6 +439,12 @@ return console.askOkCancel(message, true);
                   <property name="scheme" type="string">jalview</property>
                 </serializedBean>
               </action>
+              <action id="2450" beanClass="com.install4j.runtime.beans.actions.desktop.UrlHandlerAction" actionElevationType="elevated" rollbackBarrierExitCode="0">
+                <serializedBean>
+                  <property name="launcherId" type="string">737</property>
+                  <property name="scheme" type="string">jalviews</property>
+                </serializedBean>
+              </action>
             </actions>
             <formComponents>
               <formComponent id="16" beanClass="com.install4j.runtime.beans.formcomponents.ProgressComponent">