id 'eclipse'
id "com.diffplug.gradle.spotless" version "3.28.0"
id 'com.github.johnrengelman.shadow' version '6.0.0'
- id 'com.install4j.gradle' version '10.0.3'
+ id 'com.install4j.gradle' version '10.0.8'
id 'com.dorongold.task-tree' version '2.1.1' // only needed to display task dependency tree with gradle task1 [task2 ...] taskTree
id 'com.palantir.git-version' version '0.13.0' apply false
id 'ru.vyarus.use-python' version '4.0.0'
install4jHomeDir = "/Applications/install4j.app/Contents/Resources/app"
}
installDir(file(install4jHomeDir))
-
- mediaTypes = Arrays.asList(install4j_media_types.split(","))
}
'MACOSARCHIVE_X64_DMG_FILENAME': install4jmacOSArchiveX64DMGFilename,
'MACOSARCHIVE_AARCH64_DMG_FILENAME': install4jmacOSArchiveAarch64DMGFilename,
'MACOSARCHIVE_VOLUMEICON': install4jDMGVolumeIcon,
- 'INSTALLER_ICON': "${install4j_images_dir}/${install4j_installer_icon}",
- 'INSTALLER_MAC_ICON': "${install4j_images_dir}/${install4j_installer_mac_icon}",
- 'INSTALLER_WINDOWS_ICON': "${install4j_images_dir}/${install4j_installer_windows_icon}",
+ 'INSTALLER_ICON': "${getdownImagesDir}/${install4j_installer_icon}",
+ 'INSTALLER_MAC_ICON': "${getdownImagesDir}/${install4j_installer_mac_icon}",
+ 'INSTALLER_WINDOWS_ICON': "${getdownImagesDir}/${install4j_installer_windows_icon}",
]
+ if (project.hasProperty("install4j_build_ids")) {
+ buildIds = Arrays.asList(install4j_build_ids.split(","))
+ } else if (project.hasProperty("install4j_media_types")) {
+ buildSelected = true
+ mediaTypes = Arrays.asList(install4j_media_types.split(","))
+ }
+
def varNameMap = [
'mac': 'MACOS',
'windows': 'WINDOWS',
//variables.each{k,v->println("${k}=${v}")}
destination = "${jalviewDir}/${install4jBuildDir}"
- buildSelected = true
if (install4j_faster.equals("true") || CHANNEL.startsWith("LOCAL")) {
faster = true
install4j_build_dir = build/install4j
install4j_executable_name = jalviewg
install4j_user_executable_name = jalviewu
-install4j_media_types = windows,macosArchive,unixArchive,unixInstaller
+#install4j_media_types = windows,macosArchive,unixArchive,unixInstaller
+#install4j_build_ids = WINDOWS-X64-EXE,MACOS-X64-DMG,MACOS-AARCH64-DMG,LINUX-X64-SH,LINUX-AARCH-SH,UNIX--SH,UNIX--TGZ
install4j_faster = false
install4j_application_categories = Science;Biology;Java;
install4j_release_win_application_id = 6595-2347-1923-0725
DMG=build/install4j/11/Jalview_Local-TEST-macos-java_11.dmg
GRADLE=""
APPBASEOVERRIDEARG=""
-MEDIA=macosArchive
+BUILDID=MACOS-AARCH64-DMG
CLEAN="clean"
JAVA=11
x=$(grep jalview.version= RELEASE)
VERSION=${x#*=}
-while getopts ":i:n:a:c:d:go:m:j:l" opt; do
+while getopts ":i:n:a:c:d:go:b:j:l" opt; do
case ${opt} in
i)
INSTALLERVOL="${OPTARG}"
o)
APPBASEOVERRIDEARG="-Pgetdown_appbase_override=${OPTARG}"
;;
- m)
- MEDIA="${OPTARG}"
+ b)
+ BUILDID="${OPTARG}"
;;
j)
JAVA="${OPTARG}"
fi
if [ "${GRADLE}" = 1 ]; then
- echo "Running: gradle ${CLEAN} installers -PCHANNEL="${CHANNEL}" -Pinstall4j_media_types="${MEDIA}" ${APPBASEOVERRIDEARG} -PJAVA_VERSION=${JAVA}"
- gradle ${CLEAN} installers -PCHANNEL="${CHANNEL}" -Pinstall4j_media_types="${MEDIA}" ${APPBASEOVERRIDEARG} -PJAVA_VERSION=${JAVA}
+ echo "Running: gradle ${CLEAN} installers -PCHANNEL="${CHANNEL}" -Pinstall4j_build_ids="${BUILDID}" ${APPBASEOVERRIDEARG} -PJAVA_VERSION=${JAVA}"
+ gradle ${CLEAN} installers -PCHANNEL="${CHANNEL}" -Pinstall4j_build_ids="${BUILDID}" ${APPBASEOVERRIDEARG} -PJAVA_VERSION=${JAVA}
else
echo "Not running gradle installers"
fi