From d3b4cd4f993c33cc16e0d225e9d6fe862058d945 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 9 Mar 2020 12:09:03 +0000 Subject: [PATCH] JAL-3394 Made Categories line configurable/readable in gradle.properties as will be used more generically in future --- build.gradle | 1 + gradle.properties | 3 +- utils/install4j/install4j8_template.install4j | 59 +++++++++---------------- 3 files changed, 24 insertions(+), 39 deletions(-) diff --git a/build.gradle b/build.gradle index ca73859..0afdbf4 100644 --- a/build.gradle +++ b/build.gradle @@ -1363,6 +1363,7 @@ task installers(type: com.install4j.gradle.Install4jTask) { 'GETDOWN_INSTALL_DIR': getdown_install_dir, 'INFO_PLIST_FILE_ASSOCIATIONS_FILE': install4j_info_plist_file_associations, 'BUILD_DIR': install4jBuildDir, + 'UNIX_DESKTOP_ADDITIONS': install4j_unix_desktop_additions, ] destination = "${jalviewDir}/${install4jBuildDir}" diff --git a/gradle.properties b/gradle.properties index e4f0ebf..74685aa 100644 --- a/gradle.properties +++ b/gradle.properties @@ -119,9 +119,10 @@ install4j_info_plist_file_associations = file_associations_auto-Info_plist.xml install4j_installer_file_associations = file_associations_auto-install4j8.xml #install4j_DMG_uninstaller_app_files = uninstall_old_jalview_files.xml install4j_build_dir = build/install4j -install4j_media_types = windows,macosArchive,linuxRPM,linuxDeb,unixArchive,unixInstaller +install4j_media_types = windows,macosArchive,unixArchive,unixInstaller install4j_faster = false install4j_installer_name = Jalview Installer +install4j_unix_desktop_additions = Categories=Science;Biology;Java; OSX_KEYSTORE = OSX_KEYPASS = diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index 8a0ea4f..961c5c0 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -38,6 +38,7 @@ + @@ -126,7 +127,7 @@ 2350 2450 - Categories=Science;Biology;Java; + ${compiler:UNIX_DESKTOP_ADDITIONS} ${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")} @@ -1061,42 +1062,6 @@ return console.askYesNo(message, true); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1151,7 +1116,7 @@ return console.askYesNo(message, true); - + @@ -1185,6 +1150,23 @@ return console.askYesNo(message, true); + + + + + + + + + + + + + + + + + @@ -1194,5 +1176,6 @@ return console.askYesNo(message, true); + -- 1.7.10.2