From: Jalview Development Admin Date: Thu, 14 Jan 2021 15:34:05 +0000 (+0000) Subject: JAL-3796 update to Install4j 8.0.10 and add config for code notarization X-Git-Tag: Develop-2_11_2_0-d20210205~2^2~2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=be537cc6cdddc2d0e17877371bb53e93feeee4ce;p=jalview.git JAL-3796 update to Install4j 8.0.10 and add config for code notarization --- diff --git a/build.gradle b/build.gradle index ebb8733..d6cdf35 100644 --- a/build.gradle +++ b/build.gradle @@ -40,7 +40,7 @@ plugins { id 'eclipse' id "com.diffplug.gradle.spotless" version "3.28.0" id 'com.github.johnrengelman.shadow' version '4.0.3' - id 'com.install4j.gradle' version '8.0.4' + id 'com.install4j.gradle' version '8.0.10' id 'com.dorongold.task-tree' version '1.5' // only needed to display task dependency tree with gradle task1 [task2 ...] taskTree id 'com.palantir.git-version' version '0.12.3' } @@ -1882,6 +1882,8 @@ task installers(type: com.install4j.gradle.Install4jTask) { 'JALVIEW_APPLICATION_NAME': install4jApplicationName, 'JALVIEW_DIR': "../..", 'OSX_KEYSTORE': OSX_KEYSTORE, + 'OSX_APPLEID': OSX_APPLEID, + 'OSX_ALTOOLPASS': OSX_ALTOOLPASS, 'JSIGN_SH': JSIGN_SH, 'JRE_DIR': getdown_app_dir_java, 'INSTALLER_TEMPLATE_VERSION': install4jTemplateVersion, @@ -1934,15 +1936,25 @@ task installers(type: com.install4j.gradle.Install4jTask) { if (install4j_faster.equals("true") || CHANNEL.startsWith("LOCAL")) { faster = true disableSigning = true + disableNotarization = true } if (OSX_KEYPASS) { macKeystorePassword = OSX_KEYPASS + } + + if (OSX_ALTOOLPASS) { + appleIdPassword = OSX_ALTOOLPASS + disableNotarization = false + } else { + disableNotarization = true } doFirst { println("Using projectFile "+projectFile) + if (!disableNotarization) { println("Will notarize OSX App DMG") } } + verbose=true inputs.dir(getdownWebsiteDir) inputs.file(install4jConfFile) diff --git a/gradle.properties b/gradle.properties index b3590a7..5479001 100644 --- a/gradle.properties +++ b/gradle.properties @@ -137,6 +137,8 @@ install4j_dmg_ds_store = jalview_dmg_DS_Store OSX_KEYSTORE = OSX_KEYPASS = JSIGN_SH = echo +OSX_APPLEID = +OSX_ALTOOLPASS = CHANNEL=LOCAL getdown_channel_base = https://www.jalview.org/getdown diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index b19ddf9..a0f3dc8 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -1,5 +1,5 @@ - + @@ -13,6 +13,7 @@ + @@ -53,7 +54,27 @@ - + + + *.dylib + *.so + *.jnilib + unpack200 + tnameserv + servertool + rmiregistry + rmid + policytool + pack200 + orbd + keytool + jjs + java + jspawnhelper + libfreetype.dylib.6 + applet + +