JAL-3234 Gradle properties for signing: OSX_KEYSTORE, OSX_KEYPASS, JSIGN_SH
authorJalview Build Box <jbb@Jalviews-Mac-mini.local>
Thu, 25 Apr 2019 14:14:54 +0000 (15:14 +0100)
committerJalview Build Box <jbb@Jalviews-Mac-mini.local>
Thu, 25 Apr 2019 14:14:54 +0000 (15:14 +0100)
build.gradle

index 55d5709..b2da5be 100644 (file)
@@ -823,9 +823,15 @@ task installers(type: com.install4j.gradle.Install4jTask) {
   dependsOn copyInstall4jTemplate
   projectFile = file(install4jConf)
   println("Using projectFile "+projectFile)
-  variables = [majorVersion: version.substring(2, 11), build: 001]
+  variables = [majorVersion: version.substring(2, 11), build: 001, OSX_KEYSTORE: OSX_KEYSTORE, JSIGN_SH: JSIGN_SH]
   destination = "$jalviewDir/$install4jBuildDir/$JAVA_VERSION"
   buildSelected = true
+
+  if (OSX_KEYPASS) {
+    macKeystorePassword=OSX_KEYPASS
+    
+  }
+  
   inputs.dir(project.ext.getdownWebsiteDir)
   inputs.file(install4jConf)
   inputs.dir(macosJavaVMDir)