/jalviewjsTest.html
/site1
/site2
+/resources/.build_properties
+/resources/channel_properties
buildDist = true
// the following values might be overridden by the CHANNEL switch
+ channelPropertiesFile = string("${channel_properties_dir}/release_properties")
getdownChannelName = CHANNEL.toLowerCase()
getdownDir = string("${getdownChannelName}/${JAVA_VERSION}")
getdownAppBase = string("${getdown_channel_base}/${getdownDir}")
getdownLauncher = string("${jalviewDir}/${getdown_lib_dir}/${getdown_launcher}")
getdownAppDistDir = getdown_app_dir_alt
+ buildProperties = string("${resourceDir}/${build_properties_file}")
+ getdownImagesDir = getdown_images_dir
+ getdownBgColour = "FFFFFF"
+ getdownFgColour = "000000"
+ getdownLightFgColour = "000066"
reportRsyncCommand = false
jvlChannelName = CHANNEL.toLowerCase()
install4jSuffix = CHANNEL.substring(0, 1).toUpperCase() + CHANNEL.substring(1).toLowerCase(); // BUILD -> Build
install4jInstallerName = "${jalview_name} Non-Release Installer"
install4jExecutableName = jalview_name.replaceAll("[^\\w]+", "_").toLowerCase()
install4jExtraScheme = "jalviewx"
+ install4jMacIconsFile = string("${install4j_utils_dir}/${install4j_mac_icons_file}")
+ install4jWindowsIconsFile = string("${install4j_utils_dir}/${install4j_windows_icons_file}")
+ install4jPngIconFile = string("${install4j_utils_dir}/${install4j_png_icon_file}")
switch (CHANNEL) {
case "BUILD":
inputs.dir(inputDir)
outputs.dir(outputDir)
}
-
+task copyChannelProperties(type: Copy) {
+ def propsFile = file(channelPropertiesFile)
+ rename(propsFile.getName(), "channel_properties")
+ from channelPropertiesFile
+ into resourceDir
+}
task createBuildProperties(type: WriteProperties) {
dependsOn copyResources
outputs.file("${workingDir}/JavaHelpSearch/TMAP")
}
-
task prepare {
dependsOn copyResources
dependsOn copyDocs
if (getdownAltMultiJavaLocation != null && getdownAltMultiJavaLocation.length() > 0) {
props.put("getdown_txt_multi_java_location", getdownAltMultiJavaLocation)
}
+ if (getdownImagesDir != null && file(getdownImagesDir).exists()) {
+ props.put("getdown_txt_ui.background_image", "${getdownImagesDir}/${getdown_background_image}")
+ props.put("getdown_txt_ui.instant_background_image", "${getdownImagesDir}/${getdown_instant_background_image}")
+ props.put("getdown_txt_ui.error_background", "${getdownImagesDir}/${getdown_error_background}")
+ props.put("getdown_txt_ui.progress_image", "${getdownImagesDir}/${getdown_progress_image}")
+ props.put("getdown_txt_ui.icon", "${getdownImagesDir}/${getdown_icon}")
+ props.put("getdown_txt_ui.mac_dock_icon", "${getdownImagesDir}/${getdown_mac_dock_icon}")
+ props.put("getdown_txt_ui.background", getdownBgColour)
+ props.put("getdown_txt_ui.progress_text", getdownFgColour)
+ props.put("getdown_txt_ui.status_text", getdownLightFgColour)
+ }
props.put("getdown_txt_title", jalview_name)
props.put("getdown_txt_ui.name", install4jApplicationName)
'UNIX_APPLICATION_FOLDER': install4jUnixApplicationFolder,
'EXECUTABLE_NAME': install4jExecutableName,
'EXTRA_SCHEME': install4jExtraScheme,
+ 'MAC_ICONS_FILE': install4jMacIconsFile,
+ 'WINDOWS_ICONS_FILE': install4jWindowsIconsFile,
+ 'PNG_ICON_FILE': install4jPngIconFile,
+
]
//println("INSTALL4J VARIABLES:")
getdown_core = getdown/lib/getdown-core.jar
getdown_build_properties = build_properties
getdown_launch_jvl_name = channel_launch
+getdown_images_dir = utils/getdown
+getdown_background_image = jalview_logo_background_getdown-640x480.png
+getdown_instant_background_image = jalview_logo_background_getdown_instant-640x480.png
+getdown_error_background = jalview_logo_background_getdown_error-640x480.png
+getdown_progress_image = jalview_logo_background_getdown-progress.png
+getdown_mac_dock_icon = jalview_logos.icns
+getdown_icon = Jalview-Logo.png
getdown_txt_allow_offline = true
getdown_txt_max_concurrent_downloads = 10
-# now got better defaults when not set
+# now got better (dynamic) defaults when jvmmem* not set
#getdown_txt_jalview.jvmmempc = 90
-# now got better defaults when not set
#getdown_txt_jalview.jvmmemmax = 32G
getdown_txt_multi_jvmarg = -Dgetdownappdir=%APPDIR%
getdown_txt_strict_comments = true
getdown_txt_ui.display_version = true
getdown_txt_ui.min_show_seconds = 6
getdown_txt_ui.background = FFFFFF
-getdown_txt_ui.background_image = utils/getdown/jalview_logo_background_getdown-640x480.png
-getdown_txt_ui.instant_background_image = utils/getdown/jalview_logo_background_getdown_instant-640x480.png
-getdown_txt_ui.error_background = utils/getdown/jalview_logo_background_getdown_error-640x480.png
-getdown_txt_ui.progress_image = utils/getdown/jalview_logo_background_getdown-progress.png
-getdown_txt_ui.icon = resources/images/JalviewLogo_Huge.png
getdown_txt_ui.progress = 20, 440, 600, 22
getdown_txt_ui.progress_bar = AAAAFF
getdown_txt_ui.progress_text = 000000
getdown_txt_ui.status = 20, 380, 600, 58
getdown_txt_ui.status_text = 000066
-#getdown_txt_ui.text_shadow = FFFFFF
getdown_txt_ui.install_error = https://www.jalview.org/faq/getdownerror
-getdown_txt_ui.mac_dock_icon = resources/images/jalview_logos.ico
getdown_alt_java8_min_version = 01080000
getdown_alt_java8_max_version = 01089999
getdown_alt_java11_min_version = 11000000
flexmark_css = utils/doc/github.css
+channel_properties_dir = utils/channels
+
install4j_home_dir = ~/buildtools/install4j8
install4j_copyright_message = ...
install4j_bundle_id = org.jalview.jalview-desktop
install4j_faster = false
install4j_application_categories = Science;Biology;Java;
install4j_release_win_application_id = 6595-2347-1923-0725
+install4j_mac_icons_file = jalview_logos.icns
+install4j_windows_icons_file = jalview_logos.ico
+install4j_png_icon_file = Jalview-Logo.png
OSX_KEYSTORE =
OSX_KEYPASS =
--- /dev/null
+app_name=Jalview Develop
+about_logo=Jalview_Develop_Logo.png
+taskbar_icon=JalviewLogo_Huge.png
+default_channel_appbase=https://www.jalview.org/getdown/release/11
--- /dev/null
+app_name=Jalview
+about_logo=images/Jalview_Logo.png
+taskbar_icon=images/JalviewLogo_Huge.png
+default_channel_appbase=https://www.jalview.org/getdown/release/1.8
--- /dev/null
+convert jalview_logos_16x16x32.png jalview_logos_32x32x32.png jalview_logos_128x128x32.png jalview_logos_256x256x32.png jalview_logos_512x512x32.png ./jalview_logos.ico
+
+png2icns ./jalview_logos.icns jalview_logos_16x16x32.png jalview_logos_32x32x32.png jalview_logos_128x128x32.png jalview_logos_256x256x32.png jalview_logos_512x512x3
<variable name="UNIX_APPLICATION_FOLDER" value="jalview" />
<variable name="EXECUTABLE_NAME" value="jalview" />
<variable name="EXTRA_SCHEME" value="jalviewx" />
+ <variable name="MAC_ICONS_FILE" value="utils/install4j/jalview_logos.icns" />
+ <variable name="WINDOWS_ICONS_FILE" value="utils/install4j/jalview_logos.ico" />
+ <variable name="PNG_ICON_FILE" value="utils/install4j/Jalview-Logo.png" />
</variables>
<codeSigning macEnabled="true" macPkcs12File="${compiler:OSX_KEYSTORE}" />
</application>
</components>
</files>
<launchers>
- <launcher name="Jalview Launcher" id="737" menuName="${compiler:JALVIEW_APPLICATION_NAME}" icnsFile="${compiler:JALVIEW_DIR}/resources/images/jalview_logos.icns" customMacBundleIdentifier="true" macBundleIdentifier="${compiler:BUNDLE_ID}" fileset="734" useCustomMacosExecutableName="true" customMacosExecutableName="${compiler:JALVIEW_APPLICATION_NAME}">
- <executable name="${compiler:EXECUTABLE_NAME}" iconSet="true" iconFile="${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico" redirectStdout="true" executableMode="gui" changeWorkingDirectory="false" singleInstance="true" checkConsoleParameter="true">
+ <launcher name="Jalview Launcher" id="737" menuName="${compiler:JALVIEW_APPLICATION_NAME}" icnsFile="${compiler:JALVIEW_DIR}/${compiler:MAC_ICONS_FILE}" customMacBundleIdentifier="true" macBundleIdentifier="${compiler:BUNDLE_ID}" fileset="734" useCustomMacosExecutableName="true" customMacosExecutableName="${compiler:JALVIEW_APPLICATION_NAME}">
+ <executable name="${compiler:EXECUTABLE_NAME}" iconSet="true" iconFile="${compiler:JALVIEW_DIR}/${compiler:WINDOWS_ICONS_FILE}" redirectStdout="true" executableMode="gui" changeWorkingDirectory="false" singleInstance="true" checkConsoleParameter="true">
<versionInfo include="true" fileDescription="${compiler:sys.fullName}" legalCopyright="${compiler:COPYRIGHT_MESSAGE}" internalName="${compiler:INTERNAL_ID}" productName="${compiler:sys.fullName}" />
</executable>
<splashScreen width="640" height="480" bitmapFile="${compiler:JALVIEW_DIR}/resources/images/jalview_logo_background_fade-640x480.png" textOverlay="true">
</macStaticAssociationActions>
<infoPlist>${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")}</infoPlist>
<iconImageFiles>
- <file path="${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png" />
+ <file path="${compiler:JALVIEW_DIR}/${compiler:PNG_ICON_FILE}" />
</iconImageFiles>
</launcher>
</launchers>
<installerGui autoUpdateDescriptorUrl="https://www.jalview.org/install4j/updates.xml">
<applications>
- <application id="installer" beanClass="com.install4j.runtime.beans.applications.InstallerApplication" styleId="35" customIcnsFile="${compiler:JALVIEW_DIR}/resources/images/jalview_logos.icns" customIcoFile="${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico">
+ <application id="installer" beanClass="com.install4j.runtime.beans.applications.InstallerApplication" styleId="35" customIcnsFile="${compiler:JALVIEW_DIR}/${compiler:MAC_ICONS_FILE}" customIcoFile="${compiler:JALVIEW_DIR}/${compiler:WINDOWS_ICONS_FILE}">
<serializedBean>
<property name="useCustomIcon" type="boolean" value="true" />
</serializedBean>
</property>
<property name="icon">
<object class="com.install4j.api.beans.ExternalFile">
- <string>${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico</string>
+ <string>${compiler:JALVIEW_DIR}/${compiler:WINDOWS_ICONS_FILE}</string>
</object>
</property>
<property name="programGroupName" type="string">${compiler:JALVIEW_NAME}</property>
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
- <string>${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png</string>
+ <string>${compiler:JALVIEW_DIR}/${compiler:PNG_ICON_FILE}</string>
</object>
</property>
</serializedBean>
<property name="name" type="string">${compiler:JALVIEW_APPLICATION_NAME}</property>
<property name="unixIconFile">
<object class="com.install4j.api.beans.ExternalFile">
- <string>${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png</string>
+ <string>${compiler:JALVIEW_DIR}/${compiler:PNG_ICON_FILE}</string>
</object>
</property>
<property name="winIconFile">
<object class="com.install4j.api.beans.ExternalFile">
- <string>${compiler:JALVIEW_DIR}/resources/images/jalview_logos.ico</string>
+ <string>${compiler:JALVIEW_DIR}/${compiler:WINDOWS_ICONS_FILE}</string>
</object>
</property>
</serializedBean>