Created
July 1, 2020 16:13
-
-
Save Genzer/51942657ef4ef8cb8396d9b26e6e48c9 to your computer and use it in GitHub Desktop.
A convenient script to install Zulu IcedTea Web Portable version 1.8.3 on macOS.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# A convenient script to install Zulu IcedTea Web Portable version 1.8.3 | |
# on macOS. | |
# It can run with most of the JRE/JDK 8 Distribution like Oracle JDK | |
# or AdoptOpenJDK. | |
set -e | |
ICEDTEA_WEB_VERSION='1.8.3-4' | |
TEMPORARY_FILE=$(mktemp -t 'icedteaweb') | |
INSTALLATION_DIR=$(pwd)/icedtea-web-${ICEDTEA_WEB_VERSION} | |
trap "rm -rf ${TEMPORARY_FILE}" EXIT SIGTERM SIGHUP | |
wget --output-document ${TEMPORARY_FILE} \ | |
https://cdn.azul.com/icedtea-web/zulu-icedtea-web-${ICEDTEA_WEB_VERSION}.portable.bin.zip | |
unzip -q ${TEMPORARY_FILE} -d ${INSTALLATION_DIR} | |
# Install Bash completion | |
javaws_bash_completion=etc/bash_completion.d/javaws | |
ln -sf \ | |
${INSTALLATION_DIR}/icedtea-web-image/${javaws_bash_completion}.bash \ | |
/usr/local/${javaws_bash_completion} | |
# Install javaws | |
ln -sf ${INSTALLATION_DIR}/icedtea-web-image/bin/javaws.sh /usr/local/bin/javaws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment