From 3237829bba602ca59be28b09fcad1cb3f14f19ac Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Mon, 6 Apr 2020 15:49:30 +0100 Subject: [PATCH] JAL-3577 Moved application Categories for freedesktop menus into correct place in install4j --- build.gradle | 8 ++++++-- gradle.properties | 2 +- utils/install4j/install4j8_template.install4j | 5 +++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index f5a2182..3080ed8 100644 --- a/build.gradle +++ b/build.gradle @@ -280,7 +280,11 @@ ext { .replaceAll("[^\\w\\-\\.]", "_") // replace other non [alphanumeric,_,-,.] .replaceAll("_+", "") // collapse __ //.replaceAll("_*-_*", "-") // collapse _-_ - install4jUnixApplicationFolder = install4jInternalId + install4jUnixApplicationFolder = install4jApplicationName + .replaceAll(" ","_") + .replaceAll("[^\\w\\-\\.]", "_") // replace other non [alphanumeric,_,-,.] + .replaceAll("_+", "_") // collapse __ + .replaceAll("_*-_*", "-") // collapse _-_ .toLowerCase() getdownAppDir = string("${getdownWebsiteDir}/${getdownAppDistDir}") @@ -1453,7 +1457,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, + 'APPLICATION_CATEGORIES': install4j_application_categories, 'APPLICATION_FOLDER': install4jApplicationFolder, 'UNIX_APPLICATION_FOLDER': install4jUnixApplicationFolder, 'EXECUTABLE_NAME': install4jExecutableName, diff --git a/gradle.properties b/gradle.properties index c31a59b..782a495 100644 --- a/gradle.properties +++ b/gradle.properties @@ -122,7 +122,7 @@ install4j_installer_file_associations = file_associations_auto-install4j8.xml install4j_build_dir = build/install4j install4j_media_types = windows,macosArchive,unixArchive,unixInstaller install4j_faster = false -install4j_unix_desktop_additions = Categories=Science;Biology;Java; +install4j_application_categories = Science;Biology;Java; install4j_release_win_application_id = 6595-2347-1923-0725 OSX_KEYSTORE = diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index 9788523..2252a91 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -43,7 +43,7 @@ - + @@ -137,7 +137,6 @@ 2450 2641 - ${compiler:UNIX_DESKTOP_ADDITIONS} ${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")} @@ -391,6 +390,7 @@ return console.askOkCancel(message, true); + ${compiler:APPLICATION_CATEGORIES} ${compiler:JALVIEW_NAME} ${i18n:UninstallerMenuEntry(${compiler:sys.fullName})} @@ -484,6 +484,7 @@ return console.askOkCancel(message, true); + ${compiler:APPLICATION_CATEGORIES} ${compiler:JALVIEW_APPLICATION_NAME} -- 1.7.10.2