mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-27 23:26:57 +08:00
Pick-to: 6.8 6.5 Task-number: QTQAINFRA-7709 Change-Id: Ia8802cc2c5e7fb8ed63e261f70fb343cd55a1dfa Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit0ab91c0886) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit4a184bed88)
24 lines
917 B
Bash
Executable File
24 lines
917 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2024 The Qt Company Ltd.
|
|
set -ex
|
|
|
|
# This script will install up-to-date google Chrome needed for Webassembly auto tests.
|
|
|
|
# shellcheck source=../common/unix/DownloadURL.sh
|
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
|
|
|
# shellcheck source=../common/unix/DownloadURL.sh
|
|
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"
|
|
|
|
chromeVersion="chrome-for-testing-131"
|
|
sha="006d8e0438980d5ca8809af6f036e2b802b13cc8"
|
|
cachedChromeUrl="https://ci-files01-hki.ci.qt.io/input/wasm/chrome/${chromeVersion}.zip"
|
|
officialChromeUrl="https://storage.googleapis.com/chrome-for-testing-public/131.0.6778.204/linux64/chrome-linux64.zip"
|
|
target="/tmp/${chromeVersion}.zip"
|
|
|
|
DownloadURL "$cachedChromeUrl" "$officialChromeUrl" "$sha" "$target"
|
|
sudo unzip -q "$target" -d "${HOME}"
|
|
sudo rm -f "$target"
|
|
chromePath="${HOME}/chrome-linux64/chrome"
|
|
SetEnvVar "BROWSER_FOR_WASM" "${chromePath}"
|