From: Ben Soares Date: Mon, 1 Nov 2021 17:31:34 +0000 (+0000) Subject: JAL-3907 added creation of symbolic links to workaround an install4j9 problem with... X-Git-Tag: Release_2_11_2_0~25^2^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e6f114aebc4731f47923c9d0eb91bc5bc710dc25;p=jalview.git JAL-3907 added creation of symbolic links to workaround an install4j9 problem with parsing packed jre filenames with hyphens. --- diff --git a/utils/download_jres.sh b/utils/download_jres.sh index 5aa4b57..8029e82 100755 --- a/utils/download_jres.sh +++ b/utils/download_jres.sh @@ -100,6 +100,10 @@ for FEATURE_VERSION in 8 11 17; do echo "Creating ${NAME}.${EXT} for install4j bundling" [ \! -d ${ARCHIVEDIR} ] && mkdir -p "${ARCHIVEDIR}" $TAR -C "${JREDIR}" -zcf "${ARCHIVEDIR}/${NAME}.${EXT}" . + # make symbolic link with _ instead of - for install4j9 + NEWNAME=${NAME//-/_} + echo "Linking from ${NEWNAME}.${EXT} for install4j9" + ln -s "${NAME}.${EXT}" "${ARCHIVEDIR}/${NEWNAME}.${EXT}" ;; *) echo "Archiving as '${CREATEARCHIVE}' file not supported"