From 91b997599550f62b59629aed53371c2356dcbf36 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 14 Feb 2020 17:09:08 +0000 Subject: [PATCH] JAL-3394 A little streamlining and fixing of helper script --- build.gradle | 13 +++++++++++-- gradle.properties | 2 +- utils/dev_macos_install.sh | 2 +- utils/install4j/install4j8_template.install4j | 14 ++++++++------ 4 files changed, 21 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 84c38db..522ce38 100644 --- a/build.gradle +++ b/build.gradle @@ -1227,6 +1227,14 @@ task copyInstall4jTemplate { } } + // turn off checksum creation for LOCAL channel + def e = install4jConfigXml.application[0] + if (CHANNEL == "LOCAL") { + e.'@createChecksums' = "false" + } else { + e.'@createChecksums' = "true" + } + // put file association actions where placeholder action is def install4jFileAssociationsText = install4jFileAssociationsFile.text def fileAssociationActions = new XmlParser().parseText("${install4jFileAssociationsText}") @@ -1279,6 +1287,7 @@ task installers(type: com.install4j.gradle.Install4jTask) { def install4jBuildDir = "${install4j_build_dir}/${JAVA_VERSION}" variables = [ + 'JALVIEW_NAME': getdown_txt_title, 'JALVIEW_DIR': "../..", 'OSX_KEYSTORE': OSX_KEYSTORE, 'JSIGN_SH': JSIGN_SH, @@ -1298,6 +1307,7 @@ task installers(type: com.install4j.gradle.Install4jTask) { 'LINUX_JAVA_VM_TGZ': linuxJavaVMTgz, 'COPYRIGHT_MESSAGE': install4j_copyright_message, 'MACOS_BUNDLE_ID': install4j_macOS_bundle_id, + 'INSTALLER_NAME': install4j_installer_name, 'INSTALL4J_UTILS_DIR': install4j_utils_dir, 'GETDOWN_WEBSITE_DIR': getdown_website_dir, 'GETDOWN_FILES_DIR': getdown_files_dir, @@ -1312,8 +1322,7 @@ task installers(type: com.install4j.gradle.Install4jTask) { destination = "${jalviewDir}/${install4jBuildDir}" buildSelected = true - if (install4j_faster.equals("true") || CHANNEL.startsWith("DEVELOP") || CHANNEL.startsWith("LOCAL")) { - // this doesn't seem to work + if (install4j_faster.equals("true") || CHANNEL.startsWith("LOCAL")) { faster = true disableSigning = true } diff --git a/gradle.properties b/gradle.properties index 51a37ac..c1aece3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -63,7 +63,6 @@ getdown_launcher_new = getdown-launcher-new.jar getdown_core = getdown/lib/getdown-core.jar getdown_launch_jvl = channel_launch.jvl getdown_build_properties = build_properties -getdown_txt_title = Jalview getdown_txt_allow_offline = true getdown_txt_max_concurrent_downloads = 10 # now got better defaults when not set @@ -118,6 +117,7 @@ install4j_installer_file_associations = file_associations_auto-install4j8.xml install4j_build_dir = build/install4j install4j_media_types = windows,macosArchive,linuxRPM,linuxDeb,unixArchive,unixInstaller install4j_faster = false +install4j_installer_name = Jalview Installer OSX_KEYSTORE = OSX_KEYPASS = diff --git a/utils/dev_macos_install.sh b/utils/dev_macos_install.sh index d75bf58..6f17315 100755 --- a/utils/dev_macos_install.sh +++ b/utils/dev_macos_install.sh @@ -9,7 +9,7 @@ CHANNEL=NOCHANNEL DMG=build/install4j/11/Jalview-OFFLINE_macos-app_DEVELOPMENT-j11.dmg if [ x$1 != "xnogradle" ]; then - gradle installers -Pgetdown_channel_name=NOCHANNEL -Pinstall4jMediaTypes=macosArchive -Pgetdown_local=true -Pdev=true + gradle installers -PCHANNEL=LOCAL -Pinstall4j_media_types=macosArchive else echo "Not running gradle installers" fi diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index 321abc4..f7cab3d 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -1,13 +1,14 @@ - + + @@ -28,6 +29,7 @@ + @@ -105,7 +107,7 @@ - + @@ -116,7 +118,7 @@ - + @@ -129,8 +131,8 @@ - - + + @@ -874,7 +876,7 @@ return console.askYesNo(message, true); - + -- 1.7.10.2