HEAP_SIZE=normal
VENDOR=adoptopenjdk
IMAGE_TYPE=jre
+TAR=tar
+ZIP=zip
+UNZIP=unzip
STRIP_MAC_APP_BUNDLING=false
CREATE_ARCHIVES="zip tgz"
unzip-strip() (
local zip=$1
local dest=${2:-.}
- local temp=$(mktemp -d) && unzip -qq -d "$temp" "$zip" && mkdir -p "$dest" &&
+ local temp=$(mktemp -d) && $UNZIP -qq -d "$temp" "$zip" && mkdir -p "$dest" &&
shopt -s dotglob && local f=("$temp"/*) &&
if (( ${#f[@]} == 1 )) && [[ -d "${f[0]}" ]] ; then
mv "$temp"/*/* "$dest"
else
echo "using tar"
if [ x$OS = xmac -a x$STRIP_MAC_APP_BUNDLING = xtrue ]; then
- tar --strip-components=3 -C "${JREDIR}" -zxf "${TARFILE}" "*/Contents/Home"
+ $TAR --strip-components=3 -C "${JREDIR}" -zxf "${TARFILE}" "*/Contents/Home"
RET=$?
else
- tar --strip-components=1 -C "${JREDIR}" -zxf "${TARFILE}"
+ $TAR --strip-components=1 -C "${JREDIR}" -zxf "${TARFILE}"
RET=$?
fi
fi
ZIPFILE="${ABSARCHIVEDIR}/${NAME}.${CREATEARCHIVE}"
[ -e "${ZIPFILE}" ] && $RM "${ZIPFILE}"
cd ${NAME}
- zip -X -r "${ZIPFILE}" "${IMAGE_TYPE}"
+ $ZIP -X -r "${ZIPFILE}" "${IMAGE_TYPE}"
cd -
;;
tgz)
EXT=tar.gz
echo "Creating ${NAME}.${EXT} for install4j bundling"
[ \! -d ${ARCHIVEDIR} ] && mkdir -p "${ARCHIVEDIR}"
- tar -C "${JREDIR}" -zcf "${ARCHIVEDIR}/${NAME}.${EXT}" .
+ $TAR -C "${JREDIR}" -zcf "${ARCHIVEDIR}/${NAME}.${EXT}" .
;;
*)
echo "Archiving as '${CREATEARCHIVE}' file not supported"
<variable name="GETDOWN_ALT_DIR" value="alt" />
<variable name="GETDOWN_INSTALL_DIR" value="install" />
<variable name="INFO_PLIST_FILE_ASSOCIATIONS_FILE" value="file_associations_auto-Info_plist.xml" />
+ <variable name="UNIX_DESKTOP_ADDITIONS" value="Categories=Science;Biology;Java;" />
</variables>
<codeSigning macEnabled="true" macPkcs12File="${compiler:OSX_KEYSTORE}" />
</application>
<id>2350</id>
<id>2450</id>
</macStaticAssociationActions>
- <infoPlist>${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")}</infoPlist>
- <iconImageFiles>
- <file path="${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png" />
- </iconImageFiles>
- </launcher>
- <launcher name="${compiler:JALVIEW_NAME} package" id="1876" menuName="${compiler:sys.shortName} ${compiler:JALVIEW_VERSION}" fileset="1873">
- <executable name="${compiler:sys.shortName}" iconSet="true" redirectStderr="false" failOnStderrOutput="false" executableMode="gui" changeWorkingDirectory="false" singleInstance="true" />
- <java mainClass="jalview.bin.Launcher" vmParameters="-Dinstaller_template_version=${compiler:INSTALLER_TEMPLATE_VERSION}">
- <classPath>
- <scanDirectory location="${compiler:GETDOWN_DIST_DIR}" failOnError="false" />
- </classPath>
- </java>
- <macStaticAssociationActions mode="selected">
- <id>2350</id>
- <id>2450</id>
- </macStaticAssociationActions>
+ <desktopFile>${compiler:UNIX_DESKTOP_ADDITIONS}</desktopFile>
<infoPlist>${compiler:file("${compiler:INFO_PLIST_FILE_ASSOCIATIONS_FILE}")}</infoPlist>
<iconImageFiles>
<file path="${compiler:JALVIEW_DIR}/resources/images/JalviewLogo_Huge.png" />
</styles>
</installerGui>
<mediaSets>
- <linuxDeb name="Jalview .deb Package" id="153" mediaFileName="jalview-${compiler:JALVIEW_VERSION}" dependencies="openjdk-8-jre" bzip="true" description="Jalview Desktop" maintainerEmail="help@jalview.org">
- <excludedComponents>
- <component id="1031" />
- <component id="1155" />
- <component id="1156" />
- <component id="1276" />
- <component id="2110" />
- </excludedComponents>
- <excludedLaunchers>
- <launcher id="737" />
- </excludedLaunchers>
- <exclude>
- <entry defaultFileset="true" />
- <entry filesetId="734" />
- <entry filesetId="880" />
- <entry filesetId="882" />
- </exclude>
- </linuxDeb>
- <linuxRPM name="Jalview RPM Package" id="570" mediaFileName="jalview-${compiler:JALVIEW_VERSION}" dependencies="java-1.8.0-openjdk" arch="noarch">
- <excludedComponents>
- <component id="1031" />
- <component id="1155" />
- <component id="1156" />
- <component id="1276" />
- <component id="2110" />
- </excludedComponents>
- <excludedLaunchers>
- <launcher id="737" />
- </excludedLaunchers>
- <exclude>
- <entry defaultFileset="true" />
- <entry filesetId="734" />
- <entry filesetId="880" />
- <entry filesetId="882" />
- </exclude>
- </linuxRPM>
<windows name="Windows x64 EXE Installer" id="743" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-${compiler:sys.platform}-java_${compiler:JAVA_INTEGER_VERSION}" runPostProcessor="true" postProcessor="${compiler:JSIGN_SH} $EXECUTABLE" customInstallBaseDir="~/AppData/Local">
<excludedComponents>
<component id="1155" />
<symlink name="Uninstall Old Jalview (optional).app" target="Jalview.app/Contents/Resources/app/Uninstall Old Jalview.app" />
</topLevelFiles>
</macosArchive>
- <unixInstaller name="Unix Shell Installer" id="1595" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-${compiler:sys.platform}-java_${compiler:JAVA_INTEGER_VERSION}" customInstallBaseDir="~/opt/">
+ <unixInstaller name="Linux x64 Shell Installer" id="1595" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-linux_x64-java_${compiler:JAVA_INTEGER_VERSION}" customInstallBaseDir="~/opt/">
<excludedComponents>
<component id="1155" />
<component id="1156" />
<entry filesetId="880" />
<entry filesetId="882" />
<entry filesetId="1873" />
+ <entry filesetId="2105" />
</exclude>
- <jreBundle jreBundleSource="preCreated" includedJre="${compiler:LINUX_JAVA_VM_TGZ}" manualJreEntry="true" />
+ <jreBundle includedJre="${compiler:LINUX_JAVA_VM_TGZ}" manualJreEntry="true" />
</unixArchive>
+ <unixInstaller name="Unix Shell Installer" id="2639" mediaFileName="${compiler:sys.shortName}-${compiler:JALVIEW_VERSION}-${compiler:sys.platform}-java_${compiler:JAVA_INTEGER_VERSION}" customInstallBaseDir="~/opt/">
+ <excludedComponents>
+ <component id="1155" />
+ <component id="1156" />
+ <component id="1276" />
+ <component id="1881" />
+ <component id="2110" />
+ </excludedComponents>
+ <exclude>
+ <entry defaultFileset="true" />
+ <entry filesetId="880" />
+ <entry filesetId="882" />
+ <entry filesetId="1873" />
+ <entry filesetId="2105" />
+ </exclude>
+ <jreBundle includedJre="${compiler:LINUX_JAVA_VM_TGZ}" manualJreEntry="true" />
+ </unixInstaller>
</mediaSets>
<buildIds>
<mediaSet refId="153" />
<mediaSet refId="878" />
<mediaSet refId="1595" />
<mediaSet refId="1596" />
+ <mediaSet refId="2639" />
</buildIds>
</install4j>