From da8f16a74736a1e479bbc745b1e65c7db8cf4906 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Fri, 24 Jan 2020 10:54:00 +0000 Subject: [PATCH] JAL-3394 Variable-ise output folders -- will work better with sub-project/modularised gradle build --- build.gradle | 7 ++++- utils/install4j/install4j8_template.install4j | 41 +++++++++++++------------ 2 files changed, 28 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index efa2e6e..ad49dfc 100644 --- a/build.gradle +++ b/build.gradle @@ -1295,6 +1295,8 @@ task installers(type: com.install4j.gradle.Install4jTask) { filesMd5 = filesMd5.substring(0,8) } def install4jTemplateVersion = "${JALVIEW_VERSION}_F${filesMd5}_C${gitHash}" + // make install4jBuildDir relative to jalviewDir + def install4jBuildDir = "${install4j_build_dir}/${JAVA_VERSION}" variables = [ 'OSX_KEYSTORE': OSX_KEYSTORE, @@ -1315,14 +1317,17 @@ task installers(type: com.install4j.gradle.Install4jTask) { 'LINUX_JAVA_VM_TGZ': linuxJavaVMTgz, 'COPYRIGHT_MESSAGE': install4j_copyright_message, 'MACOS_BUNDLE_ID': install4j_macOS_bundle_id, + 'GETDOWN_WEBSITE_DIR': getdown_website_dir, + 'GETDOWN_FILES_DIR': getdown_files_dir, 'GETDOWN_RESOURCE_DIR': getdown_resource_dir, 'GETDOWN_DIST_DIR': getdown_app_dir, 'GETDOWN_ALT_DIR': getdown_app_dir_alt, 'GETDOWN_INSTALL_DIR': getdown_install_dir, 'INFO_PLIST_FILE_ASSOCIATIONS_FILE': install4j_info_plist_file_associations, + 'BUILD_DIR': install4jBuildDir, ] - destination = "${jalviewDir}/${install4j_build_dir}/${JAVA_VERSION}" + destination = "${jalviewDir}/${install4jBuildDir}" buildSelected = true if (install4j_faster.equals("true") || CHANNEL.startsWith("DEVELOP") || CHANNEL.startsWith("LOCAL")) { diff --git a/utils/install4j/install4j8_template.install4j b/utils/install4j/install4j8_template.install4j index 6508ed7..08dd02e 100644 --- a/utils/install4j/install4j8_template.install4j +++ b/utils/install4j/install4j8_template.install4j @@ -8,6 +8,8 @@ + + @@ -26,12 +28,13 @@ + + - + - @@ -59,11 +62,11 @@ - - + + - + @@ -100,11 +103,11 @@ - - + + - + @@ -122,7 +125,7 @@ ${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")} - + @@ -138,13 +141,13 @@ ${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")} - + - + @@ -176,7 +179,7 @@ - ../../resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png @@ -247,7 +250,7 @@ - ../../resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png @@ -482,12 +485,12 @@ return console.askOkCancel(message, true); - ../../resources/images/jalview_logos.ico + ${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico - ../../resources/images/JalviewLogo_Huge.png + ${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png @@ -505,12 +508,12 @@ return console.askOkCancel(message, true); ${compiler:sys.fullName} - ../../resources/images/JalviewLogo_Huge.png + ${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png - ../../resources/images/jalview_logos.ico + ${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico @@ -585,7 +588,7 @@ return console.askOkCancel(message, true); - ../../resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png @@ -858,7 +861,7 @@ return console.askYesNo(message, true); - ../../resources/images/jalview_logo_background_fade-640x480.png + ${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png -- 1.7.10.2