Merge branch 'task/JAL-3553_improved_install4j_output_txt' into merge/JAL-3978+JAL...
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 31 Mar 2022 17:52:55 +0000 (18:52 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 31 Mar 2022 17:52:55 +0000 (18:52 +0100)
1  2 
build.gradle
utils/install4j/install4j8_template.install4j

diff --cc build.gradle
@@@ -324,9 -318,9 +327,10 @@@ ext 
      case [ "LOCAL", "JALVIEWJS" ]:
      JALVIEW_VERSION = "TEST"
      getdownAppBase = file(getdownWebsiteDir).toURI().toString()
 +    getdownArchiveAppBase = file("${jalviewDir}/${getdown_archive_dir}").toURI().toString()
      getdownLauncher = string("${jalviewDir}/${getdown_lib_dir}/${getdown_launcher_local}")
      install4jExtraScheme = "jalviewl"
+     install4jCheckSums = false
      break
  
      default: // something wrong specified
@@@ -1943,19 -1812,9 +1947,15 @@@ task copyInstall4jTemplate 
        }
      }
  
 +    // disable install screen for OSX dmg (for 2.11.2.0)
 +    install4jConfigXml.'**'.macosArchive.each { macosArchive -> 
 +      macosArchive.attributes().remove('executeSetupApp')
 +      macosArchive.attributes().remove('setupAppId')
 +    }
 +
      // turn off checksum creation for LOCAL channel
      def e = install4jConfigXml.application[0]
-     if (CHANNEL == "LOCAL") {
-       e.'@createChecksums' = "false"
-     } else {
-       e.'@createChecksums' = "true"
-     }
+     e.'@createChecksums' = string(install4jCheckSums)
  
      // put file association actions where placeholder action is
      def install4jFileAssociationsText = install4jFileAssociationsFile.text