mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-20 03:46:44 +08:00
Provisioning: Use cached emsdk version 3.1.25 for unix
Task-number: QTQAINFRA-5458 Pick-to: 6.5 Change-Id: Ie9a38a38175cfd03ff15a886a5cd1621ae5ced36 Reviewed-by: Ville-Pekka Karhu <ville-pekka.karhu@qt.io>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#############################################################################
|
#############################################################################
|
||||||
##
|
##
|
||||||
## Copyright (C) 2021 The Qt Company Ltd.
|
## Copyright (C) 2023 The Qt Company Ltd.
|
||||||
## Contact: https://www.qt.io/licensing/
|
## Contact: https://www.qt.io/licensing/
|
||||||
##
|
##
|
||||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
@@ -41,15 +41,38 @@
|
|||||||
# shellcheck source=./SetEnvVar.sh
|
# shellcheck source=./SetEnvVar.sh
|
||||||
source "${BASH_SOURCE%/*}/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/SetEnvVar.sh"
|
||||||
|
|
||||||
|
# shellcheck source=./DownloadURL.sh
|
||||||
|
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
||||||
|
|
||||||
version="3.1.25"
|
version="3.1.25"
|
||||||
versionNode="v14.18.2"
|
versionNode="v14.18.2"
|
||||||
|
tarBallVersion=$(sed "s/\./\_/g" <<<"$version")
|
||||||
|
if uname -a |grep -q Darwin; then
|
||||||
|
tarBallPackage="emsdk_macos_${tarBallVersion}.tar.gz"
|
||||||
|
sha="33a3d1227e1409cfcb42d40c3e50108469bd5930"
|
||||||
|
else
|
||||||
|
tarBallPackage="emsdk_linux_${tarBallVersion}.tar.gz"
|
||||||
|
sha="7280f68da2cb232d8b5dca843706cb10e49ab901"
|
||||||
|
fi
|
||||||
|
cacheUrl="https://ci-files01-hki.intra.qt.io/input/emsdk/${tarBallPackage}"
|
||||||
|
target="/tmp/${tarBallPackage}"
|
||||||
|
|
||||||
mkdir -p /opt
|
mkdir -p /opt
|
||||||
cd /opt
|
cd /opt
|
||||||
sudo git clone https://github.com/emscripten-core/emsdk.git
|
echo "URL: $cacheUrl"
|
||||||
cd emsdk
|
DownloadURL "$cacheUrl" "" "$sha" "$target" || (
|
||||||
sudo ./emsdk install $version
|
echo "Emsdk isn't cached. Cloning it"
|
||||||
sudo ./emsdk activate $version
|
sudo git clone https://github.com/emscripten-core/emsdk.git
|
||||||
|
)
|
||||||
|
|
||||||
|
if [ -f "$target" ]; then
|
||||||
|
sudo tar -xzf "$target" -C /opt/
|
||||||
|
sudo rm -f "$target"
|
||||||
|
else
|
||||||
|
cd emsdk
|
||||||
|
sudo ./emsdk install "$version"
|
||||||
|
sudo ./emsdk activate "$version"
|
||||||
|
fi
|
||||||
|
|
||||||
# platform-specific toolchain and node binaries. urls obtained from "emsdk install"
|
# platform-specific toolchain and node binaries. urls obtained from "emsdk install"
|
||||||
if uname -a |grep -q Darwin; then
|
if uname -a |grep -q Darwin; then
|
||||||
|
|||||||
Reference in New Issue
Block a user