Files
qt5/coin/provisioning/qtci-linux-openSUSE-15.6-x86_64/80-install-chrome.sh
Tero Heikkinen 88f3bba9fe Unix: Bash scripts needs to be executable
Pick-to: 6.8 6.5
Task-number: QTQAINFRA-7709
Change-Id: Ia8802cc2c5e7fb8ed63e261f70fb343cd55a1dfa
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
(cherry picked from commit 0ab91c0886)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 4a184bed88)
2026-02-25 14:38:23 +00:00

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}"