From: Ben Soares Date: Thu, 2 May 2019 15:55:57 +0000 (+0100) Subject: JAL-3247 Improved file associations on macOS and Windows X-Git-Tag: Release_2_11_0~12^2^2~19 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=e7070cc783e8b248bb768bd4f5217869c170548b;p=jalview.git JAL-3247 Improved file associations on macOS and Windows --- diff --git a/utils/install4j/Info_plist_file_associations.txt b/utils/install4j/Info_plist_file_associations.txt deleted file mode 100644 index d4a5190..0000000 --- a/utils/install4j/Info_plist_file_associations.txt +++ /dev/null @@ -1,40 +0,0 @@ - CFBundleDocumentTypes - - - CFBundleTypeExtensions - - jvp - - CFBundleTypeIconFile - Jalview-File - CFBundleTypeMIMETypes - - application/x-jalview-project - - CFBundleTypeName - Jalview Project File - CFBundleTypeRole - Editor - LSIsAppleDefaultForType - - - - CFBundleTypeExtensions - - jvl - - CFBundleTypeIconFile - Jalview-Version-Locator - CFBundleTypeMIMETypes - - application/x-jalview-version-locator - - CFBundleTypeName - Jalview Version Locator - CFBundleTypeRole - Editor - LSIsAppleDefaultForType - - - - diff --git a/utils/install4j/Info_plist_file_associations.xml b/utils/install4j/Info_plist_file_associations.xml new file mode 100644 index 0000000..bcf4783 --- /dev/null +++ b/utils/install4j/Info_plist_file_associations.xml @@ -0,0 +1,39 @@ +CFBundleDocumentTypes + + +CFBundleTypeExtensions + +jvp + +CFBundleTypeName +Jalview Project File +CFBundleTypeIconFile +Jalview-File.icns +CFBundleTypeRole +Editor +CFBundleTypeMIMETypes + +application/x-jalview-project + +LSIsAppleDefaultForType + + + +CFBundleTypeExtensions + +jvl + +CFBundleTypeName +Jalview Version Locator +CFBundleTypeIconFile +Jalview-Version-Locator.icns +CFBundleTypeRole +Editor +CFBundleTypeMIMETypes + +application/x-jalview-version-locator + +LSIsAppleDefaultForType + + + diff --git a/utils/install4j/Jalview-Version-Locator.icns b/utils/install4j/Jalview-Version-Locator.icns new file mode 100644 index 0000000..506b5a1 Binary files /dev/null and b/utils/install4j/Jalview-Version-Locator.icns differ diff --git a/utils/install4j/Jalview-Version-Locator.ico b/utils/install4j/Jalview-Version-Locator.ico new file mode 100644 index 0000000..4a2545b Binary files /dev/null and b/utils/install4j/Jalview-Version-Locator.ico differ diff --git a/utils/install4j/Jalview-Version-Locator.png b/utils/install4j/Jalview-Version-Locator.png new file mode 100644 index 0000000..cb2ce97 Binary files /dev/null and b/utils/install4j/Jalview-Version-Locator.png differ diff --git a/utils/install4j/install4j_template.install4j b/utils/install4j/install4j_template.install4j index 12cff87..861a81a 100644 --- a/utils/install4j/install4j_template.install4j +++ b/utils/install4j/install4j_template.install4j @@ -7,6 +7,7 @@ + @@ -93,7 +94,7 @@ - + @@ -109,7 +110,7 @@ - + @@ -126,7 +127,7 @@ - + @@ -142,7 +143,7 @@ - + @@ -688,7 +689,13 @@ return console.askOkCancel(message, true); - + + + + Jalview.app + + + context.getBooleanVariable("addToDockAction") @@ -742,18 +749,12 @@ return console.askOkCancel(message, true); - ../../resources/images/JalviewVersionLocator.png - - - - - com.install4j.runtime.beans.actions.desktop.MacAssociationRole - EDITOR + ./Jalview-Version-Locator.icns - ../../resources/images/JalviewVersionLocator.png + ./Jalview-Version-Locator.ico @@ -1740,6 +1741,8 @@ return console.askYesNo(message, true); + + @@ -1787,12 +1790,16 @@ return console.askYesNo(message, true); + + - + + + @@ -1816,7 +1823,9 @@ return console.askYesNo(message, true); - + + + @@ -1827,7 +1836,7 @@ return console.askYesNo(message, true); - + @@ -1835,6 +1844,8 @@ return console.askYesNo(message, true); + +