aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/macos/java.sh
diff options
context:
space:
mode:
Diffstat (limited to 'coin/provisioning/common/macos/java.sh')
-rwxr-xr-xcoin/provisioning/common/macos/java.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/coin/provisioning/common/macos/java.sh b/coin/provisioning/common/macos/java.sh
index 34cf8477..e848dc63 100755
--- a/coin/provisioning/common/macos/java.sh
+++ b/coin/provisioning/common/macos/java.sh
@@ -2,7 +2,7 @@
#############################################################################
##
-## Copyright (C) 2017 The Qt Company Ltd.
+## Copyright (C) 2021 The Qt Company Ltd.
## Contact: http://www.qt.io/licensing/
##
## This file is part of the provisioning scripts of the Qt Toolkit.
@@ -38,11 +38,11 @@
set -ex
echo "Installing Java Development Kit"
-
-targetFile=jdk-8u102-macosx-x64.dmg
+version=11.0.12
+targetFile=jdk-${version}_osx-x64_bin.dmg
url=ci-files01-hki.intra.qt.io:/hdd/www/input/mac
-# url_alt=http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-macosx-x64.dmg
+# url_alt=https://www.oracle.com/java/technologies/downloads/#java11-linux
echo "Mounting $targetFile"
sudo mkdir -p /Volumes/files
@@ -53,12 +53,12 @@ sudo umount /Volumes/files
sudo hdiutil attach "/tmp/$targetFile"
echo Installing JDK
-cd /Volumes/JDK\ 8\ Update\ 102/ && sudo installer -package JDK\ 8\ Update\ 102.pkg -target /
+cd /Volumes/JDK\ ${version} && sudo installer -package JDK\ ${version}.pkg -target /
echo "Unmounting $targetFile"
-sudo hdiutil unmount /Volumes/JDK\ 8\ Update\ 102/ -force
+sudo hdiutil unmount /Volumes/JDK\ ${version} -force
echo "Disable auto update"
sudo defaults write /Library/Preferences/com.oracle.java.Java-Updater JavaAutoUpdateEnabled -bool false
-echo "JDK Version = 8 update 102" >> ~/versions.txt
+echo "JDK Version = ${version}" >> ~/versions.txt