Skip to content

Commit

Permalink
Update java in macOS x64
Browse files Browse the repository at this point in the history
Android requires java 17 in Qt 6.8 and RTA needs java 17 into VMs
to compile Qt examples.

Task-number: QTQAINFRA-6492
Pick-to: 6.8
Change-Id: I873c188154c2eae2a9eebddb94279c41ca822576
Reviewed-by: Johanna Äijälä <[email protected]>
Reviewed-by: Ville-Pekka Karhu <[email protected]>
  • Loading branch information
Matti Paaso committed Sep 24, 2024
1 parent db4d3ef commit 73cc61c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions coin/provisioning/common/macos/java.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
#!/usr/bin/env bash
# Copyright (C) 2021 The Qt Company Ltd.
# Copyright (C) 2024 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

# This script installs JDK

set -ex

source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"

echo "Installing Java Development Kit"
version=11.0.12
targetFile=jdk-${version}_osx-x64_bin.dmg
version=17.0.12
targetFile=jdk-${version}_macos-x64_bin.dmg
expectedHash="6fba2fbe5d181bd2ef7fd79e0335278c13f611cb"

url=ci-files01-hki.ci.qt.io:/hdd/www/input/mac
# url_alt=https://www.oracle.com/java/technologies/downloads/#java11-linux
# url_alt=https://www.oracle.com/java/technologies/downloads/#jdk17-mac

echo "Mounting $targetFile"
sudo mkdir -p /Volumes/files
sudo mount -o locallocks "$url" /Volumes/files

sudo cp "/Volumes/files/$targetFile" /tmp
sudo umount /Volumes/files
cd /tmp
VerifyHash "$targetFile" "$expectedHash"
sudo hdiutil attach "/tmp/$targetFile"

echo Installing JDK
Expand Down

0 comments on commit 73cc61c

Please sign in to comment.