mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-25 22:27:49 +08:00
Compare commits
50 Commits
v5.15.3-lt
...
wip/qtsafe
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a37f4a2485 | ||
|
|
34cf0234b9 | ||
|
|
18b2d88dd5 | ||
|
|
0f25c861f8 | ||
|
|
2042fea677 | ||
|
|
b74a5ac533 | ||
|
|
6f39655317 | ||
|
|
51e22677e8 | ||
|
|
68884e38f8 | ||
|
|
bced3b27e6 | ||
|
|
afffd938c0 | ||
|
|
9bcf5656a1 | ||
|
|
4ff6dd218a | ||
|
|
836bc7c649 | ||
|
|
0f10422f5d | ||
|
|
4b9ea4477d | ||
|
|
a780f200a8 | ||
|
|
71282805a5 | ||
|
|
9497487c77 | ||
|
|
6ef6267ab9 | ||
|
|
fb55d5bc14 | ||
|
|
41c372c010 | ||
|
|
34e9e68372 | ||
|
|
ee16738e1b | ||
|
|
33b0b0751f | ||
|
|
be8d6ad1b7 | ||
|
|
8aef7fc9c0 | ||
|
|
8c9174127a | ||
|
|
ac8a85582b | ||
|
|
ea67572b4a | ||
|
|
0c7588bae3 | ||
|
|
0f7a4738a0 | ||
|
|
0ef5baf70b | ||
|
|
4fabcfd5d1 | ||
|
|
e5d5e2aacb | ||
|
|
366ffa5dac | ||
|
|
1297fd0b4e | ||
|
|
cc6592ef08 | ||
|
|
4a32f93d87 | ||
|
|
d4c38f8da9 | ||
|
|
677524620d | ||
|
|
1547283a3a | ||
|
|
6bc4d562c8 | ||
|
|
015b9cb53a | ||
|
|
a63aa1647c | ||
|
|
07a4522087 | ||
|
|
ef2315af73 | ||
|
|
2644bebe4b | ||
|
|
137ed3408d | ||
|
|
ac53509b31 |
@@ -3,7 +3,7 @@ Template Target OS Target arch Compiler Features
|
|||||||
qtci-windows-8.1-x86_64 x86 MSVC2013 DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
qtci-windows-8.1-x86_64 x86 MSVC2013 DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||||
qtci-windows-8.1-x86_64 MSVC2013 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
qtci-windows-8.1-x86_64 MSVC2013 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic DisableTests
|
||||||
qtci-windows-10-x86_64-10 WinRT_10 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
qtci-windows-10-x86_64-10 WinRT_10 MSVC2015 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||||
qtci-windows-10-x86-6 MSVC2017 DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
qtci-windows-10-x86_64-10 x86 MSVC2017 DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||||
qtci-windows-10-x86_64-10 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
qtci-windows-10-x86_64-10 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo OpenGLDynamic
|
||||||
qtci-windows-10-x86_64-10 WinRT_10 x86 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
qtci-windows-10-x86_64-10 WinRT_10 x86 MSVC2017 Packaging DebugAndRelease Release ForceDebugInfo DisableTests
|
||||||
qtci-windows-7-x86-3 Mingw53 Packaging DebugAndRelease Release OpenGLDynamic DisableTests
|
qtci-windows-7-x86-3 Mingw53 Packaging DebugAndRelease Release OpenGLDynamic DisableTests
|
||||||
|
|||||||
@@ -37,7 +37,6 @@
|
|||||||
|
|
||||||
# It also runs update for SDK API, latest SDK tools, latest platform-tools and build-tools version
|
# It also runs update for SDK API, latest SDK tools, latest platform-tools and build-tools version
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
|
||||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||||
source "${BASH_SOURCE%/*}/../unix/check_and_set_proxy.sh"
|
source "${BASH_SOURCE%/*}/../unix/check_and_set_proxy.sh"
|
||||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||||
@@ -62,75 +61,37 @@ toolsSourceFile="$basePath/$toolsFile"
|
|||||||
ndkTargetFile="/tmp/$ndkFile"
|
ndkTargetFile="/tmp/$ndkFile"
|
||||||
ndkSourceFile="$basePath/$ndkFile"
|
ndkSourceFile="$basePath/$ndkFile"
|
||||||
|
|
||||||
ExceptionDownload=99
|
DownloadURL "$toolsSourceFile" "$toolsSourceFile" "$toolsSha1" "$toolsTargetFile"
|
||||||
ExceptionUnzipTools=100
|
DownloadURL "$ndkSourceFile" "$ndkSourceFile" "$ndkSha1" "$ndkTargetFile"
|
||||||
ExceptionUnzipNdk=101
|
echo "Unzipping Android NDK to '$targetFolder'"
|
||||||
ExceptionRmTools=102
|
sudo unzip -q "$ndkTargetFile" -d "$targetFolder"
|
||||||
ExceptionRmNdk=103
|
echo "Unzipping Android Tools to '$sdkTargetFolder'"
|
||||||
ExceptionSdkManager=104
|
sudo unzip -q "$toolsTargetFile" -d "$sdkTargetFolder"
|
||||||
|
rm "$ndkTargetFile"
|
||||||
|
rm "$toolsTargetFile"
|
||||||
|
|
||||||
try
|
echo "Changing ownership of Android files."
|
||||||
(
|
if uname -a |grep -q "el6\|el7"; then
|
||||||
(DownloadURL "$toolsSourceFile" "$toolsSourceFile" "$toolsSha1" "$toolsTargetFile") || throw $ExceptionDownload
|
sudo chown -R qt:wheel "$targetFolder"
|
||||||
(DownloadURL "$ndkSourceFile" "$ndkSourceFile" "$ndkSha1" "$ndkTargetFile") || throw $ExceptionDownload
|
else
|
||||||
echo "Unzipping Android NDK to '$targetFolder'"
|
sudo chown -R qt:users "$targetFolder"
|
||||||
sudo unzip -q "$ndkTargetFile" -d "$targetFolder" || throw $ExceptionUnzipNdk
|
fi
|
||||||
echo "Unzipping Android Tools to '$sdkTargetFolder'"
|
|
||||||
sudo unzip -q "$toolsTargetFile" -d "$sdkTargetFolder" || throw $ExceptionUnzipTools
|
|
||||||
rm "$ndkTargetFile" || throw $ExceptionRmNdk
|
|
||||||
rm "$toolsTargetFile" || throw $ExceptionRmTools
|
|
||||||
|
|
||||||
echo "Changing ownership of Android files."
|
echo "Running SDK manager for platforms;$sdkApiLevel, tools, platform-tools and build-tools;$sdkBuildToolsVersion."
|
||||||
if uname -a |grep -q "el6\|el7"; then
|
if [ "$http_proxy" != "" ]; then
|
||||||
sudo chown -R qt:wheel "$targetFolder"
|
proxy_host=$(echo $proxy | cut -d'/' -f3 | cut -d':' -f1)
|
||||||
else
|
proxy_port=$(echo $proxy | cut -d':' -f3)
|
||||||
sudo chown -R qt:users "$targetFolder"
|
echo "y" |"$sdkTargetFolder/tools/bin/sdkmanager" --no_https --proxy=http --proxy_host=$proxy_host --proxy_port=$proxy_port "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion"
|
||||||
fi
|
else
|
||||||
|
echo "y" |"$sdkTargetFolder/tools/bin/sdkmanager" "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Running SDK manager for platforms;$sdkApiLevel, tools, platform-tools and build-tools;$sdkBuildToolsVersion."
|
SetEnvVar "ANDROID_SDK_HOME" "$sdkTargetFolder"
|
||||||
if [ "$http_proxy" != "" ]; then
|
SetEnvVar "ANDROID_NDK_HOME" "$targetFolder/android-ndk-$ndkVersion"
|
||||||
proxy_host=$(echo $proxy | cut -d'/' -f3 | cut -d':' -f1)
|
SetEnvVar "ANDROID_NDK_HOST" "linux-x86_64"
|
||||||
proxy_port=$(echo $proxy | cut -d':' -f3)
|
SetEnvVar "ANDROID_API_VERSION" "$sdkApiLevel"
|
||||||
echo "y" |"$sdkTargetFolder/tools/bin/sdkmanager" --no_https --proxy=http --proxy_host=$proxy_host --proxy_port=$proxy_port "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion" || throw $ExceptionSdkManager
|
|
||||||
else
|
|
||||||
echo "y" |"$sdkTargetFolder/tools/bin/sdkmanager" "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion" || throw $ExceptionSdkManager
|
|
||||||
fi
|
|
||||||
|
|
||||||
SetEnvVar "ANDROID_SDK_HOME" "$sdkTargetFolder"
|
|
||||||
SetEnvVar "ANDROID_NDK_HOME" "$targetFolder/android-ndk-$ndkVersion"
|
|
||||||
SetEnvVar "ANDROID_NDK_HOST" "linux-x86_64"
|
|
||||||
SetEnvVar "ANDROID_API_VERSION" "$sdkApiLevel"
|
|
||||||
|
|
||||||
echo "Android SDK tools = $toolsVersion" >> ~/versions.txt
|
|
||||||
echo "Android SDK Build Tools = $sdkBuildToolsVersion" >> ~/versions.txt
|
|
||||||
echo "Android SDK API level = $sdkApiLevel" >> ~/versions.txt
|
|
||||||
echo "Android NDK = $ndkVersion" >> ~/versions.txt
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownload)
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUnzipTools)
|
|
||||||
echo "Failed to unzip Android SDK Tools."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUnzipNdk)
|
|
||||||
echo "Failed to unzip Android NDK."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionRmTools)
|
|
||||||
echo "Failed to remove temporary tools package '$toolsTargetFile'."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionRmNdk)
|
|
||||||
echo "Failed to remove temporary NDK package '$ndkTargetFile'."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSdkManager)
|
|
||||||
echo "Failed to run sdkmanager."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
echo "Android SDK tools = $toolsVersion" >> ~/versions.txt
|
||||||
|
echo "Android SDK Build Tools = $sdkBuildToolsVersion" >> ~/versions.txt
|
||||||
|
echo "Android SDK API level = $sdkApiLevel" >> ~/versions.txt
|
||||||
|
echo "Android NDK = $ndkVersion" >> ~/versions.txt
|
||||||
|
|||||||
@@ -36,7 +36,6 @@
|
|||||||
# This script install OpenSSL from sources.
|
# This script install OpenSSL from sources.
|
||||||
# Requires GCC and Perl to be in PATH.
|
# Requires GCC and Perl to be in PATH.
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
|
||||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||||
|
|
||||||
@@ -51,37 +50,16 @@ sha="36af23887402a5ea4ebef91df8e61654906f58f2"
|
|||||||
# QTQAINFRA-1436
|
# QTQAINFRA-1436
|
||||||
opensslHome="${installFolder}openssl-1.0.2"
|
opensslHome="${installFolder}openssl-1.0.2"
|
||||||
|
|
||||||
ExceptionDownload=99
|
DownloadURL "$cachedUrl" "$officialUrl" "$sha" "$targetFile"
|
||||||
ExceptionTar=100
|
|
||||||
ExceptionConfig=101
|
|
||||||
|
|
||||||
try
|
tar -xzf "$targetFile" -C "$installFolder"
|
||||||
(
|
# This rename should be removed once hard coded path from Coin is fixed. (QTQAINFRA-1436)
|
||||||
(DownloadURL "$cachedUrl" "$officialUrl" "$sha" "$targetFile") || throw $ExceptionDownload
|
mv "${opensslHome}g" "${opensslHome}"
|
||||||
|
pushd "$opensslHome"
|
||||||
|
|
||||||
tar -xzf "$targetFile" -C "$installFolder" || throw $ExceptionTar
|
echo "Running configure"
|
||||||
# This rename should be removed once hard coded path from Coin is fixed. (QTQAINFRA-1436)
|
perl Configure shared android
|
||||||
mv "${opensslHome}g" "${opensslHome}"
|
|
||||||
pushd "$opensslHome"
|
|
||||||
perl Configure shared android || throw $ExceptionConfig
|
|
||||||
|
|
||||||
SetEnvVar "OPENSSL_ANDROID_HOME" "$opensslHome"
|
SetEnvVar "OPENSSL_ANDROID_HOME" "$opensslHome"
|
||||||
|
|
||||||
echo "OpenSSL for Android = $version" >> ~/versions.txt
|
echo "OpenSSL for Android = $version" >> ~/versions.txt
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownload)
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionTar)
|
|
||||||
echo "Failed to extract $targetFile"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionConfig)
|
|
||||||
echo "Failed to run 'config'."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -37,21 +37,11 @@
|
|||||||
# uncompresses it and installs it by default
|
# uncompresses it and installs it by default
|
||||||
# to /Applications/. This can be overridden by a target parameter.
|
# to /Applications/. This can be overridden by a target parameter.
|
||||||
|
|
||||||
# shellcheck source=try_catch.sh
|
set -ex
|
||||||
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
|
||||||
# shellcheck source=DownloadURL.sh
|
# shellcheck source=DownloadURL.sh
|
||||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||||
|
|
||||||
ExceptionDownload=99
|
|
||||||
ExceptionCreateTmpFile=100
|
|
||||||
ExceptionCreateTmpDirectory=101
|
|
||||||
ExceptionUncompress=102
|
|
||||||
ExceptionMoveApp=103
|
|
||||||
ExceptionDeleteTmpFile=104
|
|
||||||
ExceptionRemoveTmpDirectory=105
|
|
||||||
ExceptionUnknownFormat=106
|
|
||||||
|
|
||||||
|
|
||||||
function InstallAppFromCompressedFileFromURL {
|
function InstallAppFromCompressedFileFromURL {
|
||||||
url=$1
|
url=$1
|
||||||
url_alt=$2
|
url_alt=$2
|
||||||
@@ -63,74 +53,39 @@ function InstallAppFromCompressedFileFromURL {
|
|||||||
target="/Applications/"
|
target="/Applications/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
try
|
basefilename=${url##*/}
|
||||||
(
|
extension=${basefilename##*.}
|
||||||
basefilename=${url##*/}
|
filename=${basefilename%.*}
|
||||||
extension=${basefilename##*.}
|
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
||||||
filename=${basefilename%.*}
|
extension="tar.gz"
|
||||||
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
fi
|
||||||
extension="tar.gz"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Extension for file: $extension"
|
echo "Extension for file: $extension"
|
||||||
echo "Creating temporary file and directory"
|
echo "Creating temporary file and directory"
|
||||||
targetFile=$(mktemp "$TMPDIR$(uuidgen).$extension") || throw $ExceptionCreateTmpFile
|
targetFile=$(mktemp "$TMPDIR$(uuidgen).$extension")
|
||||||
# macOS 10.10 mktemp does require prefix
|
# macOS 10.10 mktemp does require prefix
|
||||||
if [[ $OSTYPE == "darwin14" ]]; then
|
if [[ $OSTYPE == "darwin14" ]]; then
|
||||||
targetDirectory=$(mktemp -d -t '10.10') || throw $ExceptionCreateTmpDirectory
|
targetDirectory=$(mktemp -d -t '10.10')
|
||||||
else
|
else
|
||||||
targetDirectory=$(mktemp -d) || throw $ExceptionCreateTmpDirectory
|
targetDirectory=$(mktemp -d)
|
||||||
fi
|
fi
|
||||||
(DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile") || throw $ExceptionDownload
|
(DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile")
|
||||||
echo "Uncompress $targetFile"
|
echo "Uncompress $targetFile"
|
||||||
case $extension in
|
case $extension in
|
||||||
"tar.gz")
|
"tar.gz")
|
||||||
tar -xzf "$targetFile" --directory "$targetDirectory" || throw $ExceptionUncompress
|
tar -xzf "$targetFile" --directory "$targetDirectory"
|
||||||
;;
|
;;
|
||||||
"zip")
|
"zip")
|
||||||
unzip "$targetFile" -d "$targetDirectory" || throw $ExceptionUncompress
|
unzip -q "$targetFile" -d "$targetDirectory"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
throw $ExceptionUnknownFormat
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo "Moving app to '$target'"
|
echo "Moving app to '$target'"
|
||||||
sudo mv "$targetDirectory/$appPrefix/"* "$target" || throw $ExceptionMoveApp
|
sudo mv "$targetDirectory/$appPrefix/"* "$target"
|
||||||
echo "Removing file '$targetFile'"
|
echo "Removing file '$targetFile'"
|
||||||
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
rm "$targetFile"
|
||||||
echo "Removing directory '$targetDirectory'"
|
echo "Removing directory '$targetDirectory'"
|
||||||
rm -rf "$targetDirectory" || throw $ExceptionRemoveTmpDirectory
|
rm -rf "$targetDirectory"
|
||||||
)
|
|
||||||
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownload)
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionCreateTmpFile)
|
|
||||||
echo "Failed to create temporary file"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUncompress)
|
|
||||||
echo "Failed extracting compressed file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionMoveApp)
|
|
||||||
echo "Failed moving app to '$target'."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDeleteTmpFile)
|
|
||||||
echo "Failed deleting temporary file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionRemoveTmpDirectory)
|
|
||||||
echo "Failed deleting temporary file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUnknownFormat)
|
|
||||||
echo "Unknown file format."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,16 +33,7 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
# shellcheck source=try_catch.sh
|
set -ex
|
||||||
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
|
||||||
|
|
||||||
ExceptionCreateTmpFile=100
|
|
||||||
ExceptionDownloadPrimaryUrl=101
|
|
||||||
ExceptionDownloadAltUrl=102
|
|
||||||
ExceptionSHA1=103
|
|
||||||
ExceptionInstallerPKG=104
|
|
||||||
ExceptionDeleteTmpFile=105
|
|
||||||
|
|
||||||
|
|
||||||
function InstallPKGFromURL {
|
function InstallPKGFromURL {
|
||||||
url=$1
|
url=$1
|
||||||
@@ -50,55 +41,19 @@ function InstallPKGFromURL {
|
|||||||
expectedSha1=$3
|
expectedSha1=$3
|
||||||
targetDirectory=$4
|
targetDirectory=$4
|
||||||
|
|
||||||
try
|
echo "Creating temporary file"
|
||||||
(
|
targetFile=$(mktemp "$TMPDIR$(uuidgen).pkg")
|
||||||
echo "Creating temporary file"
|
echo "Downloading PKG from primary URL '$url'"
|
||||||
targetFile=$(mktemp "$TMPDIR$(uuidgen).pkg") || trow $ExceptionCreateTmpFile
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || (
|
||||||
try
|
echo "Failed to download '$url' multiple times"
|
||||||
(
|
echo "Downloading PKG from alternative URL '$url_alt'"
|
||||||
echo "Downloading PKG from primary URL '$url'"
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt"
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || throw $ExceptionDownloadPrimaryUrl
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownloadPrimaryUrl)
|
|
||||||
echo "Failed to download '$url' multiple times"
|
|
||||||
echo "Downloading PKG from alternative URL '$url_alt'"
|
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt" || throw $ExceptionDownloadAltUrl
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
echo "Checking SHA1 on PKG '$targetFile'"
|
|
||||||
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
|
||||||
/usr/bin/shasum --check $targetFile.sha1 || throw $ExceptionSHA1
|
|
||||||
echo "Run installer on PKG"
|
|
||||||
sudo installer -package "$targetFile" -target "$targetDirectory" || throw $ExceptionInstallerPKG
|
|
||||||
echo "Removing file '$targetFile'"
|
|
||||||
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
|
||||||
)
|
)
|
||||||
|
echo "Checking SHA1 on PKG '$targetFile'"
|
||||||
catch || {
|
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||||
case $ex_code in
|
/usr/bin/shasum --check $targetFile.sha1
|
||||||
$ExceptionCreateTmpFile)
|
echo "Run installer on PKG"
|
||||||
echo "Failed to create temporary file"
|
sudo installer -package "$targetFile" -target "$targetDirectory"
|
||||||
exit 1;
|
echo "Removing file '$targetFile'"
|
||||||
;;
|
rm "$targetFile"
|
||||||
$ExceptionDownloadAltUrl)
|
|
||||||
echo "Failed downloading PKG from primary and alternative URLs"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSHA1)
|
|
||||||
echo "Failed to check sha1sum."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionInstallerPKG)
|
|
||||||
echo "Failed running installer on PKG."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDeleteTmpFile)
|
|
||||||
echo "Failed deleting temporary file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
3
coin/provisioning/common/macos/disable_update_downloads.sh
Executable file
3
coin/provisioning/common/macos/disable_update_downloads.sh
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -boolean FALSE
|
||||||
|
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
|
|
||||||
# This script installs FBX SDK
|
# This script installs FBX SDK
|
||||||
|
|
||||||
# shellcheck source=./../unix/try_catch.sh
|
set -ex
|
||||||
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
|
||||||
# shellcheck source=../unix/SetEnvVar.sh
|
# shellcheck source=../unix/SetEnvVar.sh
|
||||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||||
|
|
||||||
@@ -50,27 +50,18 @@ installer="$targetFolder/fbx20161_2_fbxsdk_clang_macos.pkg"
|
|||||||
|
|
||||||
ExceptionExtractPrimaryUrl=100
|
ExceptionExtractPrimaryUrl=100
|
||||||
|
|
||||||
try
|
echo "Extracting '$cachedUrl'"
|
||||||
(
|
tar -xzf "$cachedUrl" -C "$targetFolder" || (
|
||||||
echo "Extracting '$cachedUrl'"
|
echo "Failed to uncompress from '$cachedUrl'"
|
||||||
tar -xzf "$cachedUrl" -C "$targetFolder" || throw $ExceptionExtractPrimaryUrl
|
echo "Downloading from '$officialUrl'"
|
||||||
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$officialUrl"
|
||||||
|
echo "Checking SHA1 on PKG '$targetFile'"
|
||||||
|
echo "$sha1 *$targetFile" > $targetFile.sha1
|
||||||
|
shasum --check $targetFile.sha1
|
||||||
|
echo "Extracting '$targetFile'"
|
||||||
|
tar -xzf "$targetFile" -C "$targetFolder"
|
||||||
)
|
)
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionExtractPrimaryUrl)
|
|
||||||
set -e
|
|
||||||
echo "Failed to uncompress from '$cachedUrl'"
|
|
||||||
echo "Downloading from '$officialUrl'"
|
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$officialUrl" || exit 1;
|
|
||||||
echo "Checking SHA1 on PKG '$targetFile'"
|
|
||||||
echo "$sha1 *$targetFile" > $targetFile.sha1
|
|
||||||
shasum --check $targetFile.sha1
|
|
||||||
echo "Extracting '$targetFile'"
|
|
||||||
tar -xzf "$targetFile" -C "$targetFolder" || exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
set -e
|
|
||||||
rm -rf "$targetFile"
|
rm -rf "$targetFile"
|
||||||
echo "Running installer for '$installer'"
|
echo "Running installer for '$installer'"
|
||||||
sudo installer -pkg "$installer" -target "/"
|
sudo installer -pkg "$installer" -target "/"
|
||||||
|
|||||||
@@ -33,56 +33,30 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||||
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# Command line tools is need by homebrew
|
# Command line tools is need by homebrew
|
||||||
|
|
||||||
function InstallCommandLineTools {
|
function InstallCommandLineTools {
|
||||||
|
|
||||||
ExceptionMount=101
|
|
||||||
ExceptionInstall=102
|
|
||||||
ExceptionUnmount=103
|
|
||||||
|
|
||||||
url=$1
|
url=$1
|
||||||
url_alt=$2
|
url_alt=$2
|
||||||
expectedSha1=$3
|
expectedSha1=$3
|
||||||
packageName=$4
|
packageName=$4
|
||||||
version=$5
|
version=$5
|
||||||
|
|
||||||
try
|
DownloadURL $url $url_alt $expectedSha1 /tmp/$packageName
|
||||||
(
|
echo "Mounting $packageName"
|
||||||
DownloadURL $url $url_alt $expectedSha1 /tmp/$packageName
|
hdiutil attach /tmp/$packageName
|
||||||
echo "Mounting $packageName"
|
cd "/Volumes/Command Line Developer Tools"
|
||||||
hdiutil attach /tmp/$packageName || throw $ExceptionMount
|
echo "Installing"
|
||||||
cd "/Volumes/Command Line Developer Tools"
|
sudo installer -verbose -pkg *.pkg -target /
|
||||||
echo "Installing"
|
cd /
|
||||||
sudo installer -verbose -pkg *.pkg -target / || throw $ExceptionInstall
|
# Let's fait for 5 second before unmounting. Sometimes resource is busy and cant be unmounted
|
||||||
cd /
|
sleep 3
|
||||||
# Let's fait for 5 second before unmounting. Sometimes resource is busy and cant be unmounted
|
echo "Unmounting"
|
||||||
sleep 3
|
umount /Volumes/Command\ Line\ Developer\ Tools/
|
||||||
echo "Unmounting"
|
echo "Removing $packageName"
|
||||||
umount /Volumes/Command\ Line\ Developer\ Tools/ || throw $ExceptionUnmount
|
rm /tmp/$packageName
|
||||||
echo "Removing $packageName"
|
|
||||||
rm /tmp/$packageName
|
|
||||||
|
|
||||||
echo "Command Line Tools = $version" >> ~/versions.txt
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionMount)
|
|
||||||
echo "Failed to mount"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionInstall)
|
|
||||||
echo "Failed to install"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUnmount)
|
|
||||||
echo "Failed to unmount"
|
|
||||||
exit 1;
|
|
||||||
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
echo "Command Line Tools = $version" >> ~/versions.txt
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,48 +44,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
function InstallXCode() {
|
||||||
source "${BASH_SOURCE%/*}/../unix/try_catch.sh"
|
|
||||||
|
|
||||||
function InstallXCode()
|
|
||||||
{
|
|
||||||
ExceptionCPIO=103
|
|
||||||
ExceptionAcceptLicense=105
|
|
||||||
ExceptionDeveloperMode=113
|
|
||||||
|
|
||||||
sourceFile=$1
|
sourceFile=$1
|
||||||
version=$2
|
version=$2
|
||||||
|
|
||||||
try
|
echo "Uncompressing and installing '$sourceFile'"
|
||||||
(
|
xzcat < "$sourceFile" | (cd /Applications/ && sudo cpio -dmi)
|
||||||
echo "Uncompressing and installing '$sourceFile'"
|
|
||||||
xzcat < "$sourceFile" | (cd /Applications/ && sudo cpio -dmi) || throw $ExceptionCPIO
|
|
||||||
|
|
||||||
echo "Accept license"
|
echo "Accept license"
|
||||||
sudo xcodebuild -license accept || throw $ExceptionAcceptLicense
|
sudo xcodebuild -license accept
|
||||||
|
|
||||||
echo "Enabling developer mode, so that using lldb does not require interactive password entry"
|
echo "Enabling developer mode, so that using lldb does not require interactive password entry"
|
||||||
sudo /usr/sbin/DevToolsSecurity -enable || throw $ExceptionDeveloperMode
|
sudo /usr/sbin/DevToolsSecurity -enable
|
||||||
|
|
||||||
echo "Xcode = $version" >> ~/versions.txt
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionCPIO)
|
|
||||||
echo "Failed to unarchive .cpio."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDeveloperMode)
|
|
||||||
echo "Failed to enable developer mode."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionAcceptLicense)
|
|
||||||
echo "Failed to accept license."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
echo "Xcode = $version" >> ~/versions.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
63
coin/provisioning/common/macos/java.sh
Executable file
63
coin/provisioning/common/macos/java.sh
Executable file
@@ -0,0 +1,63 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# This script installs JDK
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
echo "Installing Java Development Kit"
|
||||||
|
|
||||||
|
targetFile=jdk-8u102-macosx-x64.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
|
||||||
|
|
||||||
|
echo "Mounting $targetFile"
|
||||||
|
sudo mount "$url" /Volumes
|
||||||
|
|
||||||
|
sudo cp "/Volumes/$targetFile" /tmp
|
||||||
|
sudo umount /Volumes
|
||||||
|
sudo hdiutil attach "/tmp/$targetFile"
|
||||||
|
|
||||||
|
echo Installing JDK
|
||||||
|
cd /Volumes/JDK\ 8\ Update\ 102/ && sudo installer -package JDK\ 8\ Update\ 102.pkg -target /
|
||||||
|
|
||||||
|
echo "Unmounting $targetFile"
|
||||||
|
sudo hdiutil unmount /Volumes/JDK\ 8\ Update\ 102/ -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
|
||||||
@@ -1,5 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Will install pip utility for python
|
|
||||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
function InstallPip {
|
||||||
sudo python get-pip.py
|
|
||||||
rm get-pip.py
|
python=$1
|
||||||
|
|
||||||
|
# Will install pip utility for python
|
||||||
|
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||||
|
sudo "$python" get-pip.py
|
||||||
|
rm get-pip.py
|
||||||
|
}
|
||||||
|
|||||||
@@ -35,8 +35,12 @@
|
|||||||
|
|
||||||
# This script installs python2
|
# This script installs python2
|
||||||
|
|
||||||
|
# shellcheck source=./InstallPKGFromURL.sh
|
||||||
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
||||||
|
# shellcheck source=./../unix/SetEnvVar.sh
|
||||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||||
|
# shellcheck source=./pip.sh
|
||||||
|
source "${BASH_SOURCE%/*}/pip.sh"
|
||||||
|
|
||||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/python-2.7.14-macosx10.6.pkg"
|
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/python-2.7.14-macosx10.6.pkg"
|
||||||
AltUrl="https://www.python.org/ftp/python/2.7.14/python-2.7.14-macosx10.6.pkg"
|
AltUrl="https://www.python.org/ftp/python/2.7.14/python-2.7.14-macosx10.6.pkg"
|
||||||
@@ -45,8 +49,11 @@ DestDir="/"
|
|||||||
|
|
||||||
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
||||||
|
|
||||||
|
InstallPip /Library/Frameworks/Python.framework/Versions/2.7/bin/python
|
||||||
|
|
||||||
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip install virtualenv
|
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip install virtualenv
|
||||||
|
|
||||||
SetEnvVar "PATH" "/Library/Frameworks/Python.framework/Versions/2.7/bin/:\$PATH"
|
SetEnvVar "PATH" "/Library/Frameworks/Python.framework/Versions/2.7/bin/:\$PATH"
|
||||||
|
|
||||||
echo "python2 = 2.7.14" >> ~/versions.txt
|
echo "python2 = 2.7.14" >> ~/versions.txt
|
||||||
|
|
||||||
|
|||||||
@@ -36,8 +36,12 @@
|
|||||||
|
|
||||||
# This script installs python3
|
# This script installs python3
|
||||||
|
|
||||||
|
# shellcheck source=./InstallPKGFromURL.sh
|
||||||
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
source "${BASH_SOURCE%/*}/InstallPKGFromURL.sh"
|
||||||
|
# shellcheck source=./../unix/SetEnvVar.sh
|
||||||
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
|
||||||
|
# shellcheck source=./pip.sh
|
||||||
|
source "${BASH_SOURCE%/*}/pip.sh"
|
||||||
|
|
||||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/python-3.6.1-macosx10.6.pkg"
|
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/python-3.6.1-macosx10.6.pkg"
|
||||||
AltUrl="https://www.python.org/ftp/python/3.6.1/python-3.6.1-macosx10.6.pkg"
|
AltUrl="https://www.python.org/ftp/python/3.6.1/python-3.6.1-macosx10.6.pkg"
|
||||||
@@ -46,9 +50,12 @@ DestDir="/"
|
|||||||
|
|
||||||
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
InstallPKGFromURL "$PrimaryUrl" "$AltUrl" "$SHA1" "$DestDir"
|
||||||
|
|
||||||
|
InstallPip /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
|
||||||
|
|
||||||
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3 install virtualenv
|
/Library/Frameworks/Python.framework/Versions/3.6/bin/pip3 install virtualenv
|
||||||
|
|
||||||
SetEnvVar "PYTHON3_PATH" "/Library/Frameworks/Python.framework/Versions/3.6/bin"
|
SetEnvVar "PYTHON3_PATH" "/Library/Frameworks/Python.framework/Versions/3.6/bin"
|
||||||
SetEnvVar "PIP3_PATH" "/Library/Frameworks/Python.framework/Versions/3.6/bin"
|
SetEnvVar "PIP3_PATH" "/Library/Frameworks/Python.framework/Versions/3.6/bin"
|
||||||
|
|
||||||
echo "python3 = 3.6.1" >> ~/versions.txt
|
echo "python3 = 3.6.1" >> ~/versions.txt
|
||||||
|
|
||||||
|
|||||||
49
coin/provisioning/common/macos/sha1sum-compatibility.sh
Executable file
49
coin/provisioning/common/macos/sha1sum-compatibility.sh
Executable file
@@ -0,0 +1,49 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2018 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
# On macOS the sha1 tool is named 'shasum' while on all other unix systems it is called 'sha1sum'.
|
||||||
|
# In order to make all unix provioning scripts run on macOS without special case handling
|
||||||
|
# a symbolic link is created.
|
||||||
|
# The shasum tool is a perl script which does some globbing to determine the perl version. The
|
||||||
|
# symbolic link has to point directly to the binary including the perl version.
|
||||||
|
# Additionally the CI seems to have multiple parallel perl versions installed which causes
|
||||||
|
# multiple shasum tools to be present (shasum5.16, shasum5.18).
|
||||||
|
#
|
||||||
|
# Currently this is
|
||||||
|
# /usr/local/bin/sha1sum -> /usr/bin/shasum5.18
|
||||||
|
|
||||||
|
[ -d /usr/local/bin ] || sudo mkdir -p /usr/local/bin
|
||||||
|
SHASUM_TOOLNAME=$(ls -r /usr/bin/shasum?.* | head -n1)
|
||||||
|
sudo ln -s "${SHASUM_TOOLNAME}" /usr/local/bin/sha1sum
|
||||||
@@ -40,51 +40,22 @@
|
|||||||
# If called directly from another script, it will exit the parent script
|
# If called directly from another script, it will exit the parent script
|
||||||
# as well, if not called in its own subshell with parentheses.
|
# as well, if not called in its own subshell with parentheses.
|
||||||
|
|
||||||
# shellcheck source=try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
|
||||||
|
|
||||||
ExceptionDownloadPrimaryUrl=100
|
|
||||||
ExceptionDownloadAltUrl=101
|
|
||||||
ExceptionSHA1=102
|
|
||||||
|
|
||||||
function DownloadURL {
|
function DownloadURL {
|
||||||
url=$1
|
url=$1
|
||||||
url_alt=$2
|
url_alt=$2
|
||||||
expectedSha1=$3
|
expectedSha1=$3
|
||||||
targetFile=$4
|
targetFile=$4
|
||||||
|
|
||||||
try
|
echo "Downloading from primary URL '$url'"
|
||||||
(
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || (
|
||||||
try
|
echo "Failed to download '$url' multiple times"
|
||||||
(
|
echo "Downloading from alternative URL '$url_alt'"
|
||||||
echo "Downloading from primary URL '$url'"
|
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt"
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || throw $ExceptionDownloadPrimaryUrl
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownloadPrimaryUrl)
|
|
||||||
echo "Failed to download '$url' multiple times"
|
|
||||||
echo "Downloading tar.gz from alternative URL '$url_alt'"
|
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url_alt" || throw $ExceptionDownloadAltUrl
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
echo "Checking SHA1 on PKG '$targetFile'"
|
|
||||||
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
|
||||||
shasum --check $targetFile.sha1 || throw $ExceptionSHA1
|
|
||||||
)
|
)
|
||||||
|
|
||||||
catch || {
|
echo "Checking SHA1 on PKG '$targetFile'"
|
||||||
case $ex_code in
|
echo "$expectedSha1 *$targetFile" > $targetFile.sha1
|
||||||
$ExceptionDownloadAltUrl)
|
sha1sum --check $targetFile.sha1
|
||||||
echo "Failed downloading PKG from primary and alternative URLs"
|
rm -f $targetFile.sha1
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSHA1)
|
|
||||||
echo "Failed checksum on $targetFile."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,21 +33,11 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
# shellcheck source=try_catch.sh
|
set -ex
|
||||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
|
||||||
# shellcheck source=DownloadURL.sh
|
# shellcheck source=DownloadURL.sh
|
||||||
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
source "${BASH_SOURCE%/*}/DownloadURL.sh"
|
||||||
|
|
||||||
ExceptionDownload=99
|
|
||||||
ExceptionCreateTmpFile=100
|
|
||||||
ExceptionCreateTmpDirectory=101
|
|
||||||
ExceptionUncompress=102
|
|
||||||
ExceptionMoveApp=103
|
|
||||||
ExceptionDeleteTmpFile=104
|
|
||||||
ExceptionRemoveTmpDirectory=105
|
|
||||||
ExceptionUnknownFormat=106
|
|
||||||
|
|
||||||
|
|
||||||
function InstallFromCompressedFileFromURL {
|
function InstallFromCompressedFileFromURL {
|
||||||
url=$1
|
url=$1
|
||||||
url_alt=$2
|
url_alt=$2
|
||||||
@@ -55,70 +45,35 @@ function InstallFromCompressedFileFromURL {
|
|||||||
installDirectory=$4
|
installDirectory=$4
|
||||||
appPrefix=$5
|
appPrefix=$5
|
||||||
|
|
||||||
try
|
basefilename=${url##*/}
|
||||||
(
|
extension=${basefilename##*.}
|
||||||
basefilename=${url##*/}
|
filename=${basefilename%.*}
|
||||||
extension=${basefilename##*.}
|
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
||||||
filename=${basefilename%.*}
|
extension="tar.gz"
|
||||||
if [ "$extension" == "gz" ] && [ "${filename##*.}" == "tar" ]; then
|
fi
|
||||||
extension="tar.gz"
|
echo "Extension for file: $extension"
|
||||||
fi
|
echo "Creating temporary file and directory"
|
||||||
echo "Extension for file: $extension"
|
targetFile=$(mktemp "$TMPDIR$(uuidgen)XXXXX.$extension")
|
||||||
echo "Creating temporary file and directory"
|
targetDirectory=$(mktemp -d)
|
||||||
targetFile=$(mktemp "$TMPDIR$(uuidgen)XXXXX.$extension") || throw $ExceptionCreateTmpFile
|
DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile"
|
||||||
targetDirectory=$(mktemp -d) || throw $ExceptionCreateTmpDirectory
|
echo "Uncompress $targetFile"
|
||||||
(DownloadURL "$url" "$url_alt" "$expectedSha1" "$targetFile") || throw $ExceptionDownload
|
case $extension in
|
||||||
echo "Uncompress $targetFile"
|
"tar.gz")
|
||||||
case $extension in
|
tar -xzf "$targetFile" --directory "$targetDirectory"
|
||||||
"tar.gz")
|
;;
|
||||||
tar -xzf "$targetFile" --directory "$targetDirectory" || throw $ExceptionUncompress
|
"zip")
|
||||||
;;
|
unzip "$targetFile" -d "$targetDirectory"
|
||||||
"zip")
|
;;
|
||||||
unzip "$targetFile" -d "$targetDirectory" || throw $ExceptionUncompress
|
*)
|
||||||
;;
|
exit 1
|
||||||
*)
|
;;
|
||||||
throw $ExceptionUnknownFormat
|
esac
|
||||||
;;
|
echo "Moving app to $installDirectory"
|
||||||
esac
|
sudo mkdir -p "$installDirectory"
|
||||||
echo "Moving app to $installDirectory"
|
sudo mv "$targetDirectory/$appPrefix/"* "$installDirectory"
|
||||||
sudo mkdir -p "$installDirectory"
|
echo "Removing file '$targetFile'"
|
||||||
sudo mv "$targetDirectory/$appPrefix/"* "$installDirectory" || throw $ExceptionMoveApp
|
rm "$targetFile"
|
||||||
echo "Removing file '$targetFile'"
|
echo "Removing directory '$targetDirectory'"
|
||||||
rm "$targetFile" || throw $ExceptionDeleteTmpFile
|
rm -rf "$targetDirectory"
|
||||||
echo "Removing directory '$targetDirectory'"
|
|
||||||
rm -rf "$targetDirectory" || throw $ExceptionRemoveTmpDirectory
|
|
||||||
)
|
|
||||||
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownload)
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionCreateTmpFile)
|
|
||||||
echo "Failed to create temporary file"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUncompress)
|
|
||||||
echo "Failed extracting compressed file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionMoveApp)
|
|
||||||
echo "Failed moving app to target location."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDeleteTmpFile)
|
|
||||||
echo "Failed deleting temporary file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionRemoveTmpDirectory)
|
|
||||||
echo "Failed deleting temporary file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUnknownFormat)
|
|
||||||
echo "Unknown file format."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -32,19 +32,8 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
set -ex
|
||||||
source "${BASH_SOURCE%/*}/http_proxy.txt"
|
|
||||||
|
|
||||||
try
|
source "${BASH_SOURCE%/*}/../shared/http_proxy.txt"
|
||||||
(
|
|
||||||
wget -q -e "http_proxy=$proxy" --spider proxy.intra.qt.io
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "Setting http_proxy to $proxy"
|
|
||||||
export http_proxy=$proxy
|
|
||||||
|
|
||||||
else
|
|
||||||
echo "Proxy not detected at $proxy"
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
(wget -q -e "http_proxy=$proxy" --spider proxy.intra.qt.io && echo "Setting http_proxy to $proxy" && export http_proxy=$proxy) || echo "Proxy not detected at $proxy"
|
||||||
|
|||||||
@@ -60,12 +60,7 @@ zip="libclang.7z"
|
|||||||
destination="/usr/local/libclang-$version"
|
destination="/usr/local/libclang-$version"
|
||||||
|
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -o "$zip" "$url"
|
curl --fail -L --retry 5 --retry-delay 5 -o "$zip" "$url"
|
||||||
_shasum=sha1sum
|
echo "$sha1 $zip" | sha1sum --check
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
||||||
echo "DARWIN"
|
|
||||||
_shasum=/usr/bin/shasum
|
|
||||||
fi
|
|
||||||
echo "$sha1 $zip" | $_shasum --check
|
|
||||||
7z x $zip -o/tmp/
|
7z x $zip -o/tmp/
|
||||||
rm -rf $zip
|
rm -rf $zip
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,6 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/try_catch.sh"
|
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# This script will install squish package for Linux and Mac.
|
# This script will install squish package for Linux and Mac.
|
||||||
@@ -65,18 +63,7 @@ if [ -f "/etc/profile.d/squish_env.sh" ]; then
|
|||||||
export SQUISH_LICENSEKEY_DIR=$HOME
|
export SQUISH_LICENSEKEY_DIR=$HOME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ExceptionMount=100
|
|
||||||
ExceptionCreateFolder=101
|
|
||||||
ExceptionUncompress=102
|
|
||||||
ExceptionUnknownFormat=103
|
|
||||||
ExceptionCopy=104
|
|
||||||
ExceptionUmount=105
|
|
||||||
ExceptionHdiutilAttach=106
|
|
||||||
ExceptionInstallSquish=107
|
|
||||||
ExceptionChangeOwnership=108
|
|
||||||
|
|
||||||
function MountAndInstall {
|
function MountAndInstall {
|
||||||
|
|
||||||
url=$1
|
url=$1
|
||||||
targetDirectory=$2
|
targetDirectory=$2
|
||||||
targetFile=$3
|
targetFile=$3
|
||||||
@@ -102,96 +89,51 @@ function MountAndInstall {
|
|||||||
|
|
||||||
targetFileMount="$mountFolder"/"$targetFile"
|
targetFileMount="$mountFolder"/"$targetFile"
|
||||||
|
|
||||||
try
|
echo "Mounting $url to $mountFolder"
|
||||||
(
|
sudo mount "$url" $mountFolder
|
||||||
echo "Mounting $url to $mountFolder"
|
echo "Create $targetDirectory if needed"
|
||||||
sudo mount "$url" $mountFolder || throw $ExceptionMount
|
if [ ! -d "/opt" ]; then
|
||||||
echo "Create $targetDirectory if needed"
|
sudo mkdir "/opt"
|
||||||
if [ ! -d "/opt" ]; then
|
fi
|
||||||
sudo mkdir "/opt" || throw $ExceptionCreateFolder
|
if [ ! -d "$targetDirectory" ]; then
|
||||||
fi
|
sudo mkdir "$targetDirectory"
|
||||||
if [ ! -d "$targetDirectory" ]; then
|
fi
|
||||||
sudo mkdir "$targetDirectory" || throw $ExceptionCreateFolder
|
echo "Uncompress $targetFile"
|
||||||
fi
|
if [[ $targetFile == *.tar.gz ]]; then
|
||||||
echo "Uncompress $targetFile"
|
if [[ $targetFile == .squish-3-license.* ]]; then
|
||||||
if [[ $targetFile == *.tar.gz ]]; then
|
target="$squishLicenseDir"
|
||||||
if [[ $targetFile == .squish-3-license.* ]]; then
|
# Squish license need to be exists also in users home directory, because squish check it before it starts running tests
|
||||||
target="$squishLicenseDir"
|
sudo tar -xzf "$targetFileMount" --directory "$HOME"
|
||||||
# Squish license need to be exists also in users home directory, because squish check it before it starts running tests
|
|
||||||
sudo tar -xzf "$targetFileMount" --directory "$HOME" || throw $ExceptionUncompress
|
|
||||||
else
|
|
||||||
target="$targetDirectory"
|
|
||||||
fi
|
|
||||||
sudo tar -xzf "$targetFileMount" --directory "$target" || throw $ExceptionUncompress
|
|
||||||
echo "Unmounting $mountFolder"
|
|
||||||
sudo umount $mountFolder || throw $ExceptionUmount
|
|
||||||
elif [[ $targetFile == *.dmg ]]; then
|
|
||||||
echo "'dmg-file', no need to uncompress"
|
|
||||||
sudo cp $targetFileMount /tmp || throw $ExceptionCopy
|
|
||||||
sudo umount $mountFolder || throw $ExceptionUmount
|
|
||||||
sudo hdiutil attach "/tmp/$targetFile" || throw $ExceptionHdiutilAttach
|
|
||||||
sudo /Volumes/froglogic\ Squish/Install\ Squish.app/Contents/MacOS/Squish unattended=1 targetdir="$targetDirectory/package" qtpath="$targetDirectory" || throw $ExceptionInstallSquish
|
|
||||||
sudo hdiutil unmount /Volumes/froglogic\ Squish/
|
|
||||||
elif [[ $targetFile == *.run ]]; then
|
|
||||||
echo "'run-file', no need to uncompress"
|
|
||||||
sudo cp $targetFileMount $targetDirectory || throw $ExceptionCopy
|
|
||||||
sudo umount $mountFolder || throw $ExceptionUmount
|
|
||||||
sudo $targetDirectory/$targetFile unattended=1 targetdir="$targetDirectory/package" qtpath="$targetDirectory" > /dev/null 2>&1 || throw $ExceptionInstallSquish
|
|
||||||
sudo rm -fr "$targetDirectory/$targetFile"
|
|
||||||
if uname -a |grep -q "Ubuntu"; then
|
|
||||||
sudo mkdir /usr/lib/tcl8.6 || throw $ExceptionCreateFolder
|
|
||||||
sudo cp "$targetDirectory/package/tcl/lib/tcl8.6/init.tcl" /usr/lib/tcl8.6/ || throw $ExceptionCopy
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
throw $ExceptionUnknownFormat
|
target="$targetDirectory"
|
||||||
fi
|
fi
|
||||||
|
sudo tar -xzf "$targetFileMount" --directory "$target"
|
||||||
|
echo "Unmounting $mountFolder"
|
||||||
|
sudo umount $mountFolder
|
||||||
|
elif [[ $targetFile == *.dmg ]]; then
|
||||||
|
echo "'dmg-file', no need to uncompress"
|
||||||
|
sudo cp $targetFileMount /tmp
|
||||||
|
sudo umount $mountFolder
|
||||||
|
sudo hdiutil attach "/tmp/$targetFile"
|
||||||
|
sudo /Volumes/froglogic\ Squish/Install\ Squish.app/Contents/MacOS/Squish unattended=1 targetdir="$targetDirectory/package" qtpath="$targetDirectory"
|
||||||
|
sudo hdiutil unmount /Volumes/froglogic\ Squish/
|
||||||
|
elif [[ $targetFile == *.run ]]; then
|
||||||
|
echo "'run-file', no need to uncompress"
|
||||||
|
sudo cp $targetFileMount $targetDirectory
|
||||||
|
sudo umount $mountFolder
|
||||||
|
sudo $targetDirectory/$targetFile unattended=1 targetdir="$targetDirectory/package" qtpath="$targetDirectory" > /dev/null 2>&1
|
||||||
|
sudo rm -fr "$targetDirectory/$targetFile"
|
||||||
|
if uname -a |grep -q "Ubuntu"; then
|
||||||
|
sudo mkdir /usr/lib/tcl8.6
|
||||||
|
sudo cp "$targetDirectory/package/tcl/lib/tcl8.6/init.tcl" /usr/lib/tcl8.6/
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Changing ownerships"
|
echo "Changing ownerships"
|
||||||
sudo chown -R qt:$usersGroup "$targetDirectory" || throw $ExceptionChangeOwnership
|
sudo chown -R qt:$usersGroup "$targetDirectory"
|
||||||
sudo chown qt:$usersGroup "$HOME/.squish-3-license"
|
sudo chown qt:$usersGroup "$HOME/.squish-3-license"
|
||||||
|
|
||||||
)
|
|
||||||
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionMount)
|
|
||||||
echo "Failed to mount $url to $mountFolder."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionCreateFolder)
|
|
||||||
echo "Failed to create folder"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUncompress)
|
|
||||||
echo "Failed extracting compressed file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUnknownFormat)
|
|
||||||
echo "Unknown file format."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionCopy)
|
|
||||||
echo "Failed to copy"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUmount)
|
|
||||||
echo "Failed to unmount $mountFolder."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionHdiutilAttach)
|
|
||||||
echo "Failed to hdituli attach $mountFolder/$targetFile."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionInstallSquish)
|
|
||||||
echo "Failed to install squish"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionChangeOwnership)
|
|
||||||
echo "Failed to change ownership of $targetDirectory."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Set commands for environment variables in .bashrc"
|
echo "Set commands for environment variables in .bashrc"
|
||||||
|
|||||||
@@ -143,3 +143,11 @@ Function Execute-Command
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isProxyEnabled {
|
||||||
|
return (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').proxyEnable
|
||||||
|
}
|
||||||
|
|
||||||
|
function getProxy {
|
||||||
|
return (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').proxyServer
|
||||||
|
}
|
||||||
|
|||||||
@@ -63,4 +63,8 @@ Add-Path "C:\Python27;C:\Python27\Scripts"
|
|||||||
|
|
||||||
C:\Python27\python.exe -m ensurepip
|
C:\Python27\python.exe -m ensurepip
|
||||||
# Install python virtual env
|
# Install python virtual env
|
||||||
|
#if ( isProxyEnabled ) {
|
||||||
|
# echo "Using proxy with pip"
|
||||||
|
# $pip_args = "--proxy=" + (getProxy)
|
||||||
|
#}
|
||||||
C:\Python27\Scripts\pip.exe install virtualenv
|
C:\Python27\Scripts\pip.exe install virtualenv
|
||||||
|
|||||||
@@ -67,4 +67,8 @@ del $package
|
|||||||
[Environment]::SetEnvironmentVariable("PIP3_PATH", "$install_path\Scripts", [EnvironmentVariableTarget]::Machine)
|
[Environment]::SetEnvironmentVariable("PIP3_PATH", "$install_path\Scripts", [EnvironmentVariableTarget]::Machine)
|
||||||
|
|
||||||
# Install python virtual env
|
# Install python virtual env
|
||||||
|
#if ( isProxyEnabled ) {
|
||||||
|
# echo "Using proxy with pip"
|
||||||
|
# $pip_args = "--proxy=" + (getProxy)
|
||||||
|
#}
|
||||||
cmd /c "$install_path\Scripts\pip3.exe install virtualenv"
|
cmd /c "$install_path\Scripts\pip3.exe install virtualenv"
|
||||||
|
|||||||
64
coin/provisioning/common/windows/set-proxy.ps1
Normal file
64
coin/provisioning/common/windows/set-proxy.ps1
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
$n = Get-Content "$PSScriptRoot\..\shared\http_proxy.txt"
|
||||||
|
$n = $n.Split('=')
|
||||||
|
New-Variable -Name $n[0] -Value $n[1]
|
||||||
|
|
||||||
|
if (([string]::IsNullOrEmpty($proxy)) -or ($proxy -eq '""')) {
|
||||||
|
echo "No proxy is defined."
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "Checking proxy @ $proxy"
|
||||||
|
$proxy = $proxy -replace '"', ""
|
||||||
|
$webclient = New-Object System.Net.WebClient
|
||||||
|
$proxy_obj = New-Object System.Net.WebProxy($proxy)
|
||||||
|
$webclient.proxy = $proxy_obj
|
||||||
|
try {
|
||||||
|
$webpage = $webclient.DownloadData("http://proxy.intra.qt.io")
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
$ErrorMessage = $_.Exception.Message
|
||||||
|
$FailedItem = $_.Exception.ItemName
|
||||||
|
$iserror = $true
|
||||||
|
}
|
||||||
|
if ($iserror -eq $true) {
|
||||||
|
echo "Testing download with proxy does not work: $ErrorMessage, $FailedItem. Not setting proxy."
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "Setting proxy to: $proxy"
|
||||||
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyServer -Value "$proxy"
|
||||||
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyEnable -Value 1
|
||||||
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyOverride -Value 10.215
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -107,6 +107,12 @@ DownloadSquishLicence $licensePackage $squishUrl $targetDir
|
|||||||
|
|
||||||
if(($OSVersion -eq "Windows 10 Enterprise") -or ($OSVersion -eq "Windows 8.1 Enterprise"))
|
if(($OSVersion -eq "Windows 10 Enterprise") -or ($OSVersion -eq "Windows 8.1 Enterprise"))
|
||||||
{
|
{
|
||||||
|
# Squish for MinGW
|
||||||
|
$squishPackageMingw = "mingw_gcc53_posix_dwarf"
|
||||||
|
echo "Installing $squishPackageMingw"
|
||||||
|
DownloadAndInstallSquish $version $squishBranchUrl $qtBranch win32 $targetDir $squishPackageMingw
|
||||||
|
mv $targetDir\$squishPackageMingw $targetDir\mingw
|
||||||
|
|
||||||
# Squish for Visual Studio 2015
|
# Squish for Visual Studio 2015
|
||||||
$squishPackage = "msvc14"
|
$squishPackage = "msvc14"
|
||||||
$squishPackage64bit = "msvc14_64"
|
$squishPackage64bit = "msvc14_64"
|
||||||
@@ -152,6 +158,9 @@ else
|
|||||||
$squishPackage = "msvc14"
|
$squishPackage = "msvc14"
|
||||||
$squishPackage64bit = "msvc14_64"
|
$squishPackage64bit = "msvc14_64"
|
||||||
|
|
||||||
|
echo "Installing $squishPackage"
|
||||||
|
DownloadAndInstallSquish $version $squishBranchUrl $qtBranch win32 $targetDir $squishPackage
|
||||||
|
|
||||||
if(($env:PROCESSOR_ARCHITECTURE -eq "AMD64") -or ($env:PROCESSOR_ARCHITEW6432 -eq "AMD64"))
|
if(($env:PROCESSOR_ARCHITECTURE -eq "AMD64") -or ($env:PROCESSOR_ARCHITEW6432 -eq "AMD64"))
|
||||||
{
|
{
|
||||||
echo "Installing $squishPackage64bit"
|
echo "Installing $squishPackage64bit"
|
||||||
|
|||||||
41
coin/provisioning/common/windows/unset-proxy.ps1
Normal file
41
coin/provisioning/common/windows/unset-proxy.ps1
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#############################################################################
|
||||||
|
##
|
||||||
|
## Copyright (C) 2017 The Qt Company Ltd.
|
||||||
|
## Contact: http://www.qt.io/licensing/
|
||||||
|
##
|
||||||
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
|
##
|
||||||
|
## $QT_BEGIN_LICENSE:LGPL21$
|
||||||
|
## Commercial License Usage
|
||||||
|
## Licensees holding valid commercial Qt licenses may use this file in
|
||||||
|
## accordance with the commercial license agreement provided with the
|
||||||
|
## Software or, alternatively, in accordance with the terms contained in
|
||||||
|
## a written agreement between you and The Qt Company. For licensing terms
|
||||||
|
## and conditions see http://www.qt.io/terms-conditions. For further
|
||||||
|
## information use the contact form at http://www.qt.io/contact-us.
|
||||||
|
##
|
||||||
|
## GNU Lesser General Public License Usage
|
||||||
|
## Alternatively, this file may be used under the terms of the GNU Lesser
|
||||||
|
## General Public License version 2.1 or version 3 as published by the Free
|
||||||
|
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
||||||
|
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
||||||
|
## following information to ensure the GNU Lesser General Public License
|
||||||
|
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
||||||
|
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
##
|
||||||
|
## As a special exception, The Qt Company gives you certain additional
|
||||||
|
## rights. These rights are described in The Qt Company LGPL Exception
|
||||||
|
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
##
|
||||||
|
## $QT_END_LICENSE$
|
||||||
|
##
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
|
echo "Disabling proxy"
|
||||||
|
$dcs = (Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections").DefaultConnectionSettings
|
||||||
|
$dcs[8] = $_ -band 0xF7
|
||||||
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections" -Name DefaultConnectionSettings -Value $dcs
|
||||||
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyEnable -Value 0
|
||||||
|
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyServer
|
||||||
|
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyOverride
|
||||||
|
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# Turning on developer mode.
|
||||||
|
#
|
||||||
|
# In order to run auto tests for UWP, we have to enable developer mode on Windows 10 machines.
|
||||||
|
# https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development
|
||||||
|
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /V AllowDevelopmentWithoutDevLicense /T REG_DWORD /D 1 /F
|
||||||
@@ -36,7 +36,6 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
BASEDIR=$(dirname "$0")
|
BASEDIR=$(dirname "$0")
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
|
||||||
source $BASEDIR/../common/shared/network_test_server_ip.txt
|
source $BASEDIR/../common/shared/network_test_server_ip.txt
|
||||||
|
|
||||||
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
||||||
@@ -50,7 +49,3 @@ export DISPLAY=:0
|
|||||||
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
||||||
# disable blank screen power saving
|
# disable blank screen power saving
|
||||||
gsettings set org.gnome.desktop.session idle-delay 0
|
gsettings set org.gnome.desktop.session idle-delay 0
|
||||||
|
|
||||||
if [ "$http_proxy" != "" ]; then
|
|
||||||
echo "proxy=$proxy" | sudo tee -a /etc/yum.conf
|
|
||||||
fi
|
|
||||||
|
|||||||
@@ -35,4 +35,42 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
sudo subscription-manager repos --enable rhel-workstation-rhscl-7-rpms
|
echo "set WritePreparedUpdates=false" | sudo tee -a /etc/PackageKit/PackageKit.conf
|
||||||
|
sudo systemctl stop packagekit
|
||||||
|
sudo systemctl disable packagekit
|
||||||
|
|
||||||
|
sudo subscription-manager config --rhsm.manage_repos=0
|
||||||
|
sudo subscription-manager refresh
|
||||||
|
|
||||||
|
sudo tee "/etc/yum.repos.d/local.repo" > /dev/null <<EOC
|
||||||
|
[rhel-7-workstation-rpms]
|
||||||
|
metadata_expire = 86400
|
||||||
|
baseurl = http://repo-clones.ci.qt.io/repos/rhel-7-workstation-rpms
|
||||||
|
ui_repoid_vars = releasever basearch
|
||||||
|
name = Qt Red Hat Enterprise Linux 7 Workstation (RPMs)
|
||||||
|
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||||
|
enabled = 1
|
||||||
|
gpgcheck = 1
|
||||||
|
|
||||||
|
[rhel-7-workstation-optional-rpms]
|
||||||
|
metadata_expire = 86400
|
||||||
|
baseurl = http://repo-clones.ci.qt.io/repos/rhel-7-workstation-optional-rpms
|
||||||
|
ui_repoid_vars = releasever basearch
|
||||||
|
name = Qt Red Hat Enterprise Linux 7 Workstation - Optional (RPMs)
|
||||||
|
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||||
|
enabled = 1
|
||||||
|
gpgcheck = 1
|
||||||
|
|
||||||
|
[rhel-workstation-rhscl-7-rpms]
|
||||||
|
metadata_expire = 86400
|
||||||
|
baseurl = http://repo-clones.ci.qt.io/repos/rhel-workstation-rhscl-7-rpms
|
||||||
|
ui_repoid_vars = releasever basearch
|
||||||
|
name = Qt Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Workstation
|
||||||
|
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||||
|
enabled = 1
|
||||||
|
gpgcheck = 1
|
||||||
|
EOC
|
||||||
|
|
||||||
|
sudo yum clean all
|
||||||
|
# As well as this fetching the repository data, we also get a printout of the used repos
|
||||||
|
sudo yum repolist
|
||||||
|
|||||||
@@ -35,7 +35,6 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
sudo yum-config-manager --enable rhel-server-rhscl7-rpms
|
|
||||||
sudo yum -y install devtoolset-4
|
sudo yum -y install devtoolset-4
|
||||||
|
|
||||||
echo "source /opt/rh/devtoolset-4/enable" >> ~/.bashrc
|
echo "source /opt/rh/devtoolset-4/enable" >> ~/.bashrc
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
##
|
##
|
||||||
## Copyright (C) 2017 The Qt Company Ltd.
|
## Copyright (C) 2018 The Qt Company Ltd.
|
||||||
## Contact: http://www.qt.io/licensing/
|
## Contact: http://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.
|
||||||
@@ -37,27 +37,14 @@ set -ex
|
|||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"
|
||||||
|
|
||||||
packageEpel="epel-release-latest-7.noarch.rpm"
|
package="epel-release-7-11.noarch.rpm"
|
||||||
OfficialUrl="https://dl.fedoraproject.org/pub/epel/$packageEpel"
|
primaryUrl="https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/$package"
|
||||||
CachedUrl="http://ci-files01-hki.intra.qt.io/input/redhat/$packageEpel"
|
cacheUrl="http://ci-files01-hki.intra.qt.io/input/rhel7/$package"
|
||||||
SHA1="5512b80e5b71f2370d8419fa16a0bc14c5edf854"
|
sha1="5512b80e5b71f2370d8419fa16a0bc14c5edf854"
|
||||||
|
targetFile="/tmp/$package"
|
||||||
|
|
||||||
DownloadURL $OfficialUrl $CachedUrl $SHA1 ./$packageEpel
|
DownloadURL "$primaryUrl" "$cacheUrl" "$sha1" "$targetFile"
|
||||||
sudo rpm -Uvh $packageEpel
|
|
||||||
sudo rm -f $packageEpel
|
|
||||||
|
|
||||||
# install python3
|
sudo rpm -ivh "$targetFile"
|
||||||
sudo yum install -y python34-devel
|
rm "$targetFile"
|
||||||
|
|
||||||
# install pip3
|
|
||||||
|
|
||||||
packagePip="get-pip.py"
|
|
||||||
OfficialUrlPip="https://bootstrap.pypa.io/$packagePip"
|
|
||||||
CachedUrlPip="http://ci-files01-hki.intra.qt.io/input/redhat/$packagePip"
|
|
||||||
SHA1Pip="3d45cef22b043b2b333baa63abaa99544e9c031d"
|
|
||||||
|
|
||||||
DownloadURL $OfficialUrlPip $CachedUrlPip $SHA1Pip ./$packagePip
|
|
||||||
sudo python3 $packagePip
|
|
||||||
sudo rm -f $packagePip
|
|
||||||
sudo pip3 install virtualenv
|
|
||||||
|
|
||||||
@@ -48,7 +48,6 @@ installPackages+=(mesa-libGL-devel)
|
|||||||
installPackages+=(libxkbfile-devel)
|
installPackages+=(libxkbfile-devel)
|
||||||
# Xinput2
|
# Xinput2
|
||||||
installPackages+=(libXi-devel)
|
installPackages+=(libXi-devel)
|
||||||
installPackages+=(python-devel)
|
|
||||||
installPackages+=(mysql-server)
|
installPackages+=(mysql-server)
|
||||||
installPackages+=(mysql)
|
installPackages+=(mysql)
|
||||||
installPackages+=(mysql-devel)
|
installPackages+=(mysql-devel)
|
||||||
@@ -61,11 +60,13 @@ installPackages+=(gstreamer1-plugins-base-devel)
|
|||||||
# gtk3 style for QtGui/QStyle
|
# gtk3 style for QtGui/QStyle
|
||||||
installPackages+=(gtk3-devel)
|
installPackages+=(gtk3-devel)
|
||||||
# libusb1 for tqtc-boot2qt/qdb
|
# libusb1 for tqtc-boot2qt/qdb
|
||||||
installPackages+=(libusb-devel)
|
installPackages+=(libusbx-devel)
|
||||||
# speech-dispatcher-devel for QtSpeech, otherwise it has no backend on Linux
|
# speech-dispatcher-devel for QtSpeech, otherwise it has no backend on Linux
|
||||||
installPackages+=(speech-dispatcher-devel)
|
installPackages+=(speech-dispatcher-devel)
|
||||||
# Python
|
# Python 2 devel and pip. python-pip requires the EPEL repository to be added
|
||||||
installPackages+=(python-devel python-virtualenv)
|
installPackages+=(python-devel python-pip)
|
||||||
|
# Python 3 with python-devel, pip and virtualenv
|
||||||
|
installPackages+=(rh-python36)
|
||||||
# WebEngine
|
# WebEngine
|
||||||
installPackages+=(bison)
|
installPackages+=(bison)
|
||||||
installPackages+=(flex)
|
installPackages+=(flex)
|
||||||
@@ -84,5 +85,11 @@ installPackages+=(glibc.i686)
|
|||||||
# Enable Qt Bluetooth
|
# Enable Qt Bluetooth
|
||||||
installPackages+=(bluez-libs-devel)
|
installPackages+=(bluez-libs-devel)
|
||||||
|
|
||||||
sudo yum -y update
|
|
||||||
sudo yum -y install "${installPackages[@]}"
|
sudo yum -y install "${installPackages[@]}"
|
||||||
|
|
||||||
|
sudo ln -s /opt/rh/rh-python36/root/usr/bin/python3 /usr/local/bin/python3
|
||||||
|
sudo ln -s /opt/rh/rh-python36/root/usr/bin/pip3 /usr/local/bin/pip3
|
||||||
|
# We shouldn't use yum to install virtualenv. The one found from package repo is not
|
||||||
|
# working, but we can use installed pip
|
||||||
|
sudo pip install --upgrade pip
|
||||||
|
sudo pip install virtualenv
|
||||||
|
|||||||
@@ -35,21 +35,9 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh"
|
|
||||||
|
|
||||||
name="p7zip"
|
name="p7zip"
|
||||||
version="7-11"
|
version="7-11"
|
||||||
package="epel-release-$version.noarch.rpm"
|
|
||||||
primaryUrl="https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/$package"
|
|
||||||
cacheUrl="http://ci-files01-hki.intra.qt.io/input/rhel7/$package"
|
|
||||||
sha1="5512b80e5b71f2370d8419fa16a0bc14c5edf854"
|
|
||||||
targetFile="/tmp/$package"
|
|
||||||
|
|
||||||
DownloadURL "$primaryUrl" "$cacheUrl" "$sha1" "$targetFile"
|
|
||||||
|
|
||||||
sudo rpm -ivh "$targetFile"
|
|
||||||
sudo yum -y install "$name"
|
sudo yum -y install "$name"
|
||||||
sudo rm "$targetFile"
|
|
||||||
|
|
||||||
# Link 7za to 7z so we can use existing installation scripts
|
# Link 7za to 7z so we can use existing installation scripts
|
||||||
sudo ln -s /usr/bin/7za /usr/bin/7z
|
sudo ln -s /usr/bin/7za /usr/bin/7z
|
||||||
|
|||||||
@@ -37,69 +37,25 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
||||||
|
|
||||||
NTS_IP=10.212.2.216
|
NTS_IP=10.212.2.216
|
||||||
|
|
||||||
ExceptionGsettings1=100
|
echo "Set timezone to UTC."
|
||||||
ExceptionGsettings2=101
|
sudo timedatectl set-timezone Etc/UTC
|
||||||
ExceptionGsettings3=102
|
echo "Timeout for blanking the screen (0 = never)"
|
||||||
ExceptionNTS=103
|
gsettings set org.gnome.desktop.session idle-delay 0
|
||||||
ExceptionProxy=104
|
echo "Prevents screen lock when screesaver goes active."
|
||||||
ExceptionGrub=105
|
gsettings set org.gnome.desktop.screensaver lock-enabled false
|
||||||
|
echo "Disable questions on shutdown."
|
||||||
|
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true
|
||||||
|
echo "Set grub timeout to 0"
|
||||||
|
sudo sed -i 's|GRUB_TIMEOUT=10|GRUB_TIMEOUT=0|g' /etc/default/grub
|
||||||
|
sudo update-grub
|
||||||
|
|
||||||
try
|
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
||||||
(
|
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
||||||
echo "Set timezone to UTC."
|
|
||||||
sudo timedatectl set-timezone Etc/UTC || throw $ExceptionTimezone
|
|
||||||
echo "Timeout for blanking the screen (0 = never)"
|
|
||||||
gsettings set org.gnome.desktop.session idle-delay 0 || throw $ExceptionGsettings1
|
|
||||||
echo "Prevents screen lock when screesaver goes active."
|
|
||||||
gsettings set org.gnome.desktop.screensaver lock-enabled false || throw $ExceptionGsettings2
|
|
||||||
echo "Disable questions on shutdown."
|
|
||||||
gsettings set com.canonical.indicator.session suppress-logout-restart-shutdown true || throw $ExceptionGsettings3
|
|
||||||
echo "Set grub timeout to 0"
|
|
||||||
sudo sed -i 's|GRUB_TIMEOUT=10|GRUB_TIMEOUT=0|g' /etc/default/grub || throw $ExceptionGrub
|
|
||||||
sudo update-grub || throw $ExceptionGrub
|
|
||||||
|
|
||||||
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
|
||||||
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts || throw $ExceptionNTS
|
|
||||||
|
|
||||||
if [ "$http_proxy" != "" ]; then
|
|
||||||
echo "Acquire::http::Proxy \"$proxy\";" | sudo tee -a /etc/apt/apt.conf || throw $ExceptionProxy
|
|
||||||
fi
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionTimezone)
|
|
||||||
echo "Failed to set timezone to UTC"
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionGsettings1)
|
|
||||||
echo "Failed to disable black screen."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionGsettings2)
|
|
||||||
echo "Failed to prevent screen lock."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionGsettings3)
|
|
||||||
echo "Failed to disable questions on shutdown."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionGrub)
|
|
||||||
echo "Failed to set grub timeout."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionNTS)
|
|
||||||
echo "Failed to set network teset server address into /etc/hosts."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionProxy)
|
|
||||||
echo "Failed to set proxy /etc/apt/apt.conf."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if [ "$http_proxy" != "" ]; then
|
||||||
|
echo "Acquire::http::Proxy \"$proxy\";" | sudo tee -a /etc/apt/apt.conf
|
||||||
|
fi
|
||||||
|
|||||||
@@ -37,134 +37,127 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
echo "Disabling auto update"
|
||||||
|
sudo sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/' /etc/apt/apt.conf.d/10periodic
|
||||||
|
for service in apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; do
|
||||||
|
sudo systemctl stop $service
|
||||||
|
sudo systemctl disable $service
|
||||||
|
done
|
||||||
|
|
||||||
ExceptionAPTUpdate=100
|
# aptdaemon is used by update notifiers and similar and there is no point in having those (the symptom is aptd holding a lock)
|
||||||
ExceptionAPT=101
|
for i in `seq 10`; do
|
||||||
ExceptionSED=102
|
echo attempting to remove aptdaemon
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y remove aptdaemon || true
|
||||||
|
# check that aptdaemon is no longer installed
|
||||||
|
which aptd > /dev/null || break
|
||||||
|
if [[ $i -eq 10 ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
try
|
# Git is not needed by builds themselves, but is nice to have
|
||||||
(
|
# immediately as one starts debugging
|
||||||
echo "Disabling auto update"
|
installPackages+=(git)
|
||||||
sudo sed -i 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/' /etc/apt/apt.conf.d/10periodic || throw $ExceptionSED
|
# 7zip is a needed decompressing tool
|
||||||
for service in apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service; do
|
installPackages+=(p7zip-full)
|
||||||
sudo systemctl stop $service
|
# To be able to mount yocto-cache during builds
|
||||||
sudo systemctl disable $service
|
installPackages+=(nfs-common)
|
||||||
done
|
# libssl-dev provides headers for OpenSSL
|
||||||
# Git is not needed by builds themselves, but is nice to have
|
installPackages+=(libssl-dev)
|
||||||
# immediately as one starts debugging
|
# Needed libraries for X11 support accordingly to https://wiki.qt.io/Building_Qt_5_from_Git
|
||||||
installPackages+=(git)
|
installPackages+=("^libxcb.*")
|
||||||
# 7zip is a needed decompressing tool
|
installPackages+=(libxkbcommon-dev)
|
||||||
installPackages+=(p7zip-full)
|
installPackages+=(libxkbcommon-x11-dev)
|
||||||
# To be able to mount yocto-cache during builds
|
installPackages+=(libx11-xcb-dev)
|
||||||
installPackages+=(nfs-common)
|
installPackages+=(libglu1-mesa-dev)
|
||||||
# libssl-dev provides headers for OpenSSL
|
installPackages+=(libxrender-dev)
|
||||||
installPackages+=(libssl-dev)
|
installPackages+=(libxi-dev)
|
||||||
# Needed libraries for X11 support accordingly to https://wiki.qt.io/Building_Qt_5_from_Git
|
# Enable linking to system dbus
|
||||||
installPackages+=("^libxcb.*")
|
installPackages+=(libdbus-1-dev)
|
||||||
installPackages+=(libxkbcommon-dev)
|
# Needed libraries for WebEngine
|
||||||
installPackages+=(libxkbcommon-x11-dev)
|
installPackages+=(libudev-dev)
|
||||||
installPackages+=(libx11-xcb-dev)
|
installPackages+=(libegl1-mesa-dev)
|
||||||
installPackages+=(libglu1-mesa-dev)
|
installPackages+=(libfontconfig1-dev)
|
||||||
installPackages+=(libxrender-dev)
|
installPackages+=(libxss-dev)
|
||||||
installPackages+=(libxi-dev)
|
# Common event loop handling
|
||||||
# Enable linking to system dbus
|
installPackages+=(libglib2.0-dev)
|
||||||
installPackages+=(libdbus-1-dev)
|
# MySQL support
|
||||||
# Needed libraries for WebEngine
|
installPackages+=(libmysqlclient-dev)
|
||||||
installPackages+=(libudev-dev)
|
# PostgreSQL support
|
||||||
installPackages+=(libegl1-mesa-dev)
|
installPackages+=(libpq-dev)
|
||||||
installPackages+=(libfontconfig1-dev)
|
# SQLite support
|
||||||
installPackages+=(libxss-dev)
|
installPackages+=(libsqlite3-dev)
|
||||||
# Common event loop handling
|
# ODBC support
|
||||||
installPackages+=(libglib2.0-dev)
|
installPackages+=(unixodbc-dev)
|
||||||
# MySQL support
|
# Support for FreeType font engine
|
||||||
installPackages+=(libmysqlclient-dev)
|
installPackages+=(libfreetype6-dev)
|
||||||
# PostgreSQL support
|
# Enable the usage of system jpeg libraries
|
||||||
installPackages+=(libpq-dev)
|
installPackages+=(libjpeg-dev)
|
||||||
# SQLite support
|
# Enable support for printer driver
|
||||||
installPackages+=(libsqlite3-dev)
|
installPackages+=(libcups2-dev)
|
||||||
# ODBC support
|
# Install libraries needed for QtMultimedia to be able to support all plugins
|
||||||
installPackages+=(unixodbc-dev)
|
installPackages+=(libasound2-dev)
|
||||||
# Support for FreeType font engine
|
installPackages+=(libgstreamer1.0-dev)
|
||||||
installPackages+=(libfreetype6-dev)
|
installPackages+=(libgstreamer-plugins-base1.0-dev)
|
||||||
# Enable the usage of system jpeg libraries
|
installPackages+=(libgstreamer-plugins-good1.0-dev)
|
||||||
installPackages+=(libjpeg-dev)
|
installPackages+=(libgstreamer-plugins-bad1.0-dev)
|
||||||
# Enable support for printer driver
|
# Support for cross-building to x86 (needed by WebEngine boot2qt builds)
|
||||||
installPackages+=(libcups2-dev)
|
installPackages+=(g++-multilib)
|
||||||
# Install libraries needed for QtMultimedia to be able to support all plugins
|
# python2 development package
|
||||||
installPackages+=(libasound2-dev)
|
installPackages+=(python-pip)
|
||||||
installPackages+=(libgstreamer1.0-dev)
|
# python3 development package
|
||||||
installPackages+=(libgstreamer-plugins-base1.0-dev)
|
installPackages+=(python3-dev)
|
||||||
installPackages+=(libgstreamer-plugins-good1.0-dev)
|
installPackages+=(python3-pip)
|
||||||
installPackages+=(libgstreamer-plugins-bad1.0-dev)
|
installPackages+=(python3-virtualenv)
|
||||||
# Support for cross-building to x86 (needed by WebEngine boot2qt builds)
|
# Needed to be able to build Yocto
|
||||||
installPackages+=(g++-multilib)
|
installPackages+=(chrpath)
|
||||||
# python3 development package
|
installPackages+=(gawk)
|
||||||
installPackages+=(python3-dev)
|
installPackages+=(texinfo)
|
||||||
installPackages+=(python3-pip)
|
# Automates interactive applications (Needed by RTA to automate configure testing)
|
||||||
installPackages+=(python3-virtualenv)
|
installPackages+=(expect)
|
||||||
# Automates interactive applications (Needed by RTA to automate configure testing)
|
installPackages+=(mesa-common-dev)
|
||||||
installPackages+=(expect)
|
installPackages+=(libgl1-mesa-glx)
|
||||||
installPackages+=(mesa-common-dev)
|
installPackages+=(libgl1-mesa-dev)
|
||||||
installPackages+=(libgl1-mesa-glx)
|
installPackages+=(libegl1-mesa-dev)
|
||||||
installPackages+=(libgl1-mesa-dev)
|
installPackages+=(curl)
|
||||||
installPackages+=(libegl1-mesa-dev)
|
installPackages+=(libicu-dev)
|
||||||
installPackages+=(curl)
|
installPackages+=(zlib1g-dev)
|
||||||
installPackages+=(libicu-dev)
|
installPackages+=(zlib1g)
|
||||||
installPackages+=(zlib1g-dev)
|
installPackages+=(openjdk-8-jdk)
|
||||||
installPackages+=(zlib1g)
|
installPackages+=(libgtk-3-dev)
|
||||||
installPackages+=(openjdk-8-jdk)
|
installPackages+=(ninja-build)
|
||||||
installPackages+=(libgtk-3-dev)
|
installPackages+=(libssl-dev)
|
||||||
installPackages+=(ninja-build)
|
installPackages+=(libxcursor-dev)
|
||||||
installPackages+=(libssl-dev)
|
installPackages+=(libxcomposite-dev)
|
||||||
installPackages+=(libxcursor-dev)
|
installPackages+=(libxdamage-dev)
|
||||||
installPackages+=(libxcomposite-dev)
|
installPackages+=(libxrandr-dev)
|
||||||
installPackages+=(libxdamage-dev)
|
installPackages+=(libfontconfig1-dev)
|
||||||
installPackages+=(libxrandr-dev)
|
installPackages+=(libxss-dev)
|
||||||
installPackages+=(libfontconfig1-dev)
|
installPackages+=(libsrtp0-dev)
|
||||||
installPackages+=(libxss-dev)
|
installPackages+=(libwebp-dev)
|
||||||
installPackages+=(libsrtp0-dev)
|
installPackages+=(libjsoncpp-dev)
|
||||||
installPackages+=(libwebp-dev)
|
installPackages+=(libopus-dev)
|
||||||
installPackages+=(libjsoncpp-dev)
|
installPackages+=(libminizip-dev)
|
||||||
installPackages+=(libopus-dev)
|
installPackages+=(libavutil-dev)
|
||||||
installPackages+=(libminizip-dev)
|
installPackages+=(libavformat-dev)
|
||||||
installPackages+=(libavutil-dev)
|
installPackages+=(libavcodec-dev)
|
||||||
installPackages+=(libavformat-dev)
|
installPackages+=(libevent-dev)
|
||||||
installPackages+=(libavcodec-dev)
|
installPackages+=(bison)
|
||||||
installPackages+=(libevent-dev)
|
installPackages+=(flex)
|
||||||
installPackages+=(bison)
|
installPackages+=(gperf)
|
||||||
installPackages+=(flex)
|
installPackages+=(libasound2-dev)
|
||||||
installPackages+=(gperf)
|
installPackages+=(libpulse-dev)
|
||||||
installPackages+=(libasound2-dev)
|
installPackages+=(libxtst-dev)
|
||||||
installPackages+=(libpulse-dev)
|
installPackages+=(libnspr4-dev)
|
||||||
installPackages+=(libxtst-dev)
|
installPackages+=(libnss3-dev)
|
||||||
installPackages+=(libnspr4-dev)
|
installPackages+=(libopenal-dev)
|
||||||
installPackages+=(libnss3-dev)
|
installPackages+=(libbluetooth-dev)
|
||||||
installPackages+=(libopenal-dev)
|
#VirtualBox for RTA
|
||||||
installPackages+=(libbluetooth-dev)
|
installPackages+=(virtualbox)
|
||||||
#VirtualBox for RTA
|
installPackages+=(dkms)
|
||||||
installPackages+=(virtualbox)
|
|
||||||
installPackages+=(dkms)
|
|
||||||
|
|
||||||
echo "Running update for apt"
|
echo "Running update for apt"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
echo "Installing packages"
|
echo "Installing packages"
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install "${installPackages[@]}" || throw $ExceptionAPT
|
sudo DEBIAN_FRONTEND=noninteractive apt-get -q -y install "${installPackages[@]}"
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionAPTUpdate)
|
|
||||||
echo "Failed to run APT update."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionAPT)
|
|
||||||
echo "Failed to install package."
|
|
||||||
sudo lsof /var/lib/dpkg/lock
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSED)
|
|
||||||
echo "Failed to disable auto update."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/bin/env bash
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
##
|
##
|
||||||
@@ -33,32 +33,6 @@
|
|||||||
##
|
##
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
echo "Sourcing try_catch.sh"
|
set -ex
|
||||||
|
|
||||||
function try()
|
source "${BASH_SOURCE%/*}/../common/linux/qnx_700.sh"
|
||||||
{
|
|
||||||
[[ $- = *e* ]]; SAVED_OPT_E=$?
|
|
||||||
set +e
|
|
||||||
}
|
|
||||||
|
|
||||||
function throw()
|
|
||||||
{
|
|
||||||
exit "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
function catch()
|
|
||||||
{
|
|
||||||
export ex_code=$?
|
|
||||||
(( SAVED_OPT_E )) && set +e
|
|
||||||
return $ex_code
|
|
||||||
}
|
|
||||||
|
|
||||||
function throwErrors()
|
|
||||||
{
|
|
||||||
set -e
|
|
||||||
}
|
|
||||||
|
|
||||||
function ignoreErrors()
|
|
||||||
{
|
|
||||||
set +e
|
|
||||||
}
|
|
||||||
@@ -7,9 +7,6 @@ source $BASEDIR/../common/shared/network_test_server_ip.txt
|
|||||||
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
||||||
|
|
||||||
sed -i '$ a\[Daemon\]\nAutolock=false\nLockOnResume=false' ~/.config/kscreenlockerrc
|
sed -i '$ a\[Daemon\]\nAutolock=false\nLockOnResume=false' ~/.config/kscreenlockerrc
|
||||||
echo "Set grub timeout to 0"
|
|
||||||
sudo sed -i 's|GRUB_TIMEOUT=10|GRUB_TIMEOUT=0|g' /etc/default/grub
|
|
||||||
sudo update-grub
|
|
||||||
|
|
||||||
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
||||||
echo "$network_test_server_ip qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
echo "$network_test_server_ip qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
../common/macos/sha1sum-compatibility.sh
|
||||||
@@ -37,33 +37,19 @@ set -ex
|
|||||||
|
|
||||||
# This script modified system settings for automated use
|
# This script modified system settings for automated use
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
|
|
||||||
VNCPassword=qt
|
VNCPassword=qt
|
||||||
NTS_IP=10.212.2.216
|
NTS_IP=10.212.2.216
|
||||||
|
|
||||||
ExceptionDisableScreensaver=100
|
echo "Disable Screensaver"
|
||||||
ExceptionSetInitialDelay=101
|
# For current session
|
||||||
ExceptionSetDelay=102
|
defaults -currentHost write com.apple.screensaver idleTime 0
|
||||||
ExceptionVNC=103
|
|
||||||
ExceptionNTS=104
|
|
||||||
ExceptionDisableScreensaverPassword=105
|
|
||||||
ExceptionDisableSleep=106
|
|
||||||
|
|
||||||
try
|
echo "Disable sleep"
|
||||||
(
|
sudo pmset sleep 0 displaysleep 0
|
||||||
echo "Disable Screensaver"
|
|
||||||
# For current session
|
|
||||||
defaults -currentHost write com.apple.screensaver idleTime 0 || throw $ExceptionDisableScreensaver
|
|
||||||
|
|
||||||
echo "Disable sleep"
|
# For session after a reboot
|
||||||
sudo pmset sleep 0 displaysleep 0 || throw $ExceptionDisableSleep
|
mkdir -p "$HOME/Library/LaunchAgents"
|
||||||
|
cat >"$HOME/Library/LaunchAgents/no-screensaver.plist" <<EOT
|
||||||
# For session after a reboot
|
|
||||||
mkdir -p "$HOME/Library/LaunchAgents" || throw $ExceptionDisableScreensaver
|
|
||||||
(
|
|
||||||
cat >"$HOME/Library/LaunchAgents/no-screensaver.plist" <<EOT
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
|
||||||
@@ -87,53 +73,17 @@ try
|
|||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
EOT
|
EOT
|
||||||
) || throw $ExceptionDisableScreensaver
|
|
||||||
|
|
||||||
defaults write com.apple.screensaver askForPassword -int 0 || throw $ExceptionDisableScreensaverPassword
|
defaults write com.apple.screensaver askForPassword -int 0
|
||||||
|
|
||||||
echo "Set keyboard type rates and delays"
|
echo "Set keyboard type rates and delays"
|
||||||
# normal minimum is 15 (225 ms)
|
# normal minimum is 15 (225 ms)
|
||||||
defaults write -g InitialKeyRepeat -int 15 || throw $ExceptionSetInitialDelay
|
defaults write -g InitialKeyRepeat -int 15
|
||||||
# normal minimum is 2 (30 ms)
|
# normal minimum is 2 (30 ms)
|
||||||
defaults write -g KeyRepeat -int 2 || throw $ExceptionSetDelay
|
defaults write -g KeyRepeat -int 2
|
||||||
|
|
||||||
echo "Enable remote desktop sharing"
|
echo "Enable remote desktop sharing"
|
||||||
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw $VNCPassword -restart -agent -privs -all || throw $ExceptionVNC
|
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw $VNCPassword -restart -agent -privs -all
|
||||||
|
|
||||||
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
||||||
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts || throw $ExceptionNTS
|
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDisableScreensaver)
|
|
||||||
echo "Failed to disable screensaver."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSetInitialDelay)
|
|
||||||
echo "Failed to set initial delay of keyboard."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSetDelay)
|
|
||||||
echo "Failed to set delay of keyboard."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionVNC)
|
|
||||||
echo "Failed to enable VNC."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionNTS)
|
|
||||||
echo "Failed to set NTS."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDisableScreensaverPassword)
|
|
||||||
echo "Failed to disable requiring of password after screensaver is enabled."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDisableSleep)
|
|
||||||
echo "Failed to disable sleep."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|||||||
4
coin/provisioning/qtci-macos-10.12-x86_64/06-disable_update_downloads.sh
Executable file
4
coin/provisioning/qtci-macos-10.12-x86_64/06-disable_update_downloads.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
"$BASEDIR"/../common/macos/disable_update_downloads.sh
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
# shellcheck source=../common/macos/InstallPKGFromURL
|
||||||
source "${BASH_SOURCE%/*}/../common/macos/InstallPKGFromURL.sh"
|
source "${BASH_SOURCE%/*}/../common/macos/InstallPKGFromURL.sh"
|
||||||
|
|
||||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/macos_10.12_sierra/XZ.pkg"
|
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/macos_10.12_sierra/XZ.pkg"
|
||||||
|
|||||||
@@ -1,132 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
#############################################################################
|
$BASEDIR/../common/macos/java.sh
|
||||||
##
|
|
||||||
## Copyright (C) 2017 The Qt Company Ltd.
|
|
||||||
## Contact: http://www.qt.io/licensing/
|
|
||||||
##
|
|
||||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
|
||||||
##
|
|
||||||
## $QT_BEGIN_LICENSE:LGPL21$
|
|
||||||
## Commercial License Usage
|
|
||||||
## Licensees holding valid commercial Qt licenses may use this file in
|
|
||||||
## accordance with the commercial license agreement provided with the
|
|
||||||
## Software or, alternatively, in accordance with the terms contained in
|
|
||||||
## a written agreement between you and The Qt Company. For licensing terms
|
|
||||||
## and conditions see http://www.qt.io/terms-conditions. For further
|
|
||||||
## information use the contact form at http://www.qt.io/contact-us.
|
|
||||||
##
|
|
||||||
## GNU Lesser General Public License Usage
|
|
||||||
## Alternatively, this file may be used under the terms of the GNU Lesser
|
|
||||||
## General Public License version 2.1 or version 3 as published by the Free
|
|
||||||
## Software Foundation and appearing in the file LICENSE.LGPLv21 and
|
|
||||||
## LICENSE.LGPLv3 included in the packaging of this file. Please review the
|
|
||||||
## following information to ensure the GNU Lesser General Public License
|
|
||||||
## requirements will be met: https://www.gnu.org/licenses/lgpl.html and
|
|
||||||
## http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
||||||
##
|
|
||||||
## As a special exception, The Qt Company gives you certain additional
|
|
||||||
## rights. These rights are described in The Qt Company LGPL Exception
|
|
||||||
## version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
|
||||||
##
|
|
||||||
## $QT_END_LICENSE$
|
|
||||||
##
|
|
||||||
#############################################################################
|
|
||||||
|
|
||||||
# This script installs JDK
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
echo "Installing Java Development Kit"
|
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
|
|
||||||
ExceptionDownloadPrimaryUrl=100
|
|
||||||
ExceptionDownloadAltUrl=101
|
|
||||||
ExceptionSHA1=102
|
|
||||||
ExceptionAttachImage=103
|
|
||||||
ExceptionInstall=104
|
|
||||||
ExceptionDetachImage=105
|
|
||||||
ExceptionRemoveTmpFile=106
|
|
||||||
ExceptionDisableAutoUpdate=107
|
|
||||||
|
|
||||||
|
|
||||||
url=http://ci-files01-hki.intra.qt.io/input/mac/macos_10.12_sierra/jdk-8u102-macosx-x64.dmg
|
|
||||||
url_alt=http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-macosx-x64.dmg
|
|
||||||
targetFile=/tmp/jdk-8u102-macosx-x64.dmg
|
|
||||||
expectedSha1=1405af955f14e32aae187b5754a716307db22104
|
|
||||||
|
|
||||||
try
|
|
||||||
(
|
|
||||||
try
|
|
||||||
(
|
|
||||||
echo "Downloading from primary URL '$url'"
|
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -o "$targetFile" "$url" || throw $ExceptionDownloadPrimaryUrl
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownloadPrimaryUrl)
|
|
||||||
echo "Failed to download '$url' multiple times"
|
|
||||||
echo "Downloading tar.gz from alternative URL '$url_alt'"
|
|
||||||
curl --fail -L --retry 5 --retry-delay 5 -j -k -H "Cookie: oraclelicense=accept-securebackup-cookie" -o "$targetFile" "$url_alt" || throw $ExceptionDownloadAltUrl
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
echo "Checking SHA1 on '$targetFile'"
|
|
||||||
echo "$expectedSha1 *$targetFile" | shasum --check || throw $ExceptionSHA1
|
|
||||||
|
|
||||||
echo Mounting DMG
|
|
||||||
hdiutil attach "$targetFile" || throw $ExceptionAttachImage
|
|
||||||
|
|
||||||
echo Installing JDK
|
|
||||||
(cd /Volumes/JDK\ 8\ Update\ 102/ && sudo installer -package JDK\ 8\ Update\ 102.pkg -target /) || throw $ExceptionInstall
|
|
||||||
|
|
||||||
disk=`hdiutil info | grep '/Volumes/JDK 8 Update 102' | awk '{print $1}'`
|
|
||||||
hdiutil detach $disk || throw $ExceptionDetachImage
|
|
||||||
|
|
||||||
echo "Removing temporary file '$targetFile'"
|
|
||||||
rm "$targetFile" || throw $ExceptionRemoveTmpFile
|
|
||||||
|
|
||||||
echo "Disable auto update"
|
|
||||||
sudo defaults write /Library/Preferences/com.oracle.java.Java-Updater JavaAutoUpdateEnabled -bool false || throw $ExceptionDisableAutoUpdate
|
|
||||||
|
|
||||||
echo "JDK Version = 8 update 102" >> ~/versions.txt
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDownloadPrimaryUrl)
|
|
||||||
echo "Failed to download JDK from primary URL."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDownloadAltUrl)
|
|
||||||
echo "Failed to download JDK from alternative URL."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSHA1)
|
|
||||||
echo "Failed to check SHA1."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionAttachImage)
|
|
||||||
echo "Failed to attach image."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionInstall)
|
|
||||||
echo "Failed to install JDK."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDetachImage)
|
|
||||||
echo "Failed to detach image."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionRemoveTmpFile)
|
|
||||||
echo "Failed to remove temporary file."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDisableAutoUpdate)
|
|
||||||
echo "Failed to disable auto update."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -44,9 +44,6 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
|
|
||||||
# shellcheck source=../common/macos/install_xcode.sh
|
# shellcheck source=../common/macos/install_xcode.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/macos/install_xcode.sh"
|
source "${BASH_SOURCE%/*}/../common/macos/install_xcode.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -39,8 +39,6 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
# shellcheck source=../common/unix/SetEnvVar.sh
|
# shellcheck source=../common/unix/SetEnvVar.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/SetEnvVar.sh"
|
||||||
|
|
||||||
@@ -64,57 +62,23 @@ toolsSourceFile="$basePath/$toolsFile"
|
|||||||
ndkTargetFile="/tmp/$ndkFile"
|
ndkTargetFile="/tmp/$ndkFile"
|
||||||
ndkSourceFile="$basePath/$ndkFile"
|
ndkSourceFile="$basePath/$ndkFile"
|
||||||
|
|
||||||
ExceptionUnzipTools=100
|
echo "Unzipping Android NDK to '$targetFolder'"
|
||||||
ExceptionUnzipNdk=101
|
sudo unzip -q "$ndkSourceFile" -d "$targetFolder"
|
||||||
ExceptionRmTools=102
|
echo "Unzipping Android Tools to '$sdkTargetFolder'"
|
||||||
ExceptionRmNdk=103
|
sudo unzip -q "$toolsSourceFile" -d "$sdkTargetFolder"
|
||||||
ExceptionSdkManager=104
|
|
||||||
|
|
||||||
try
|
echo "Changing ownership of Android files."
|
||||||
(
|
sudo chown -R qt:wheel "$targetFolder"
|
||||||
echo "Unzipping Android NDK to '$targetFolder'"
|
|
||||||
sudo unzip -q "$ndkSourceFile" -d "$targetFolder" || throw $ExceptionUnzipNdk
|
|
||||||
echo "Unzipping Android Tools to '$sdkTargetFolder'"
|
|
||||||
sudo unzip -q "$toolsSourceFile" -d "$sdkTargetFolder" || throw $ExceptionUnzipTools
|
|
||||||
|
|
||||||
echo "Changing ownership of Android files."
|
echo "Running SDK manager for platforms;$sdkApiLevel, tools, platform-tools and build-tools;$sdkBuildToolsVersion."
|
||||||
sudo chown -R qt:wheel "$targetFolder"
|
(echo "y"; echo "y") |"$sdkTargetFolder/tools/bin/sdkmanager" "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion"
|
||||||
|
|
||||||
echo "Running SDK manager for platforms;$sdkApiLevel, tools, platform-tools and build-tools;$sdkBuildToolsVersion."
|
SetEnvVar "ANDROID_SDK_HOME" "$sdkTargetFolder"
|
||||||
(echo "y"; echo "y") |"$sdkTargetFolder/tools/bin/sdkmanager" "platforms;$sdkApiLevel" "tools" "platform-tools" "build-tools;$sdkBuildToolsVersion" || throw $ExceptionSdkManager
|
SetEnvVar "ANDROID_NDK_HOME" "$targetFolder/android-ndk-$ndkVersion"
|
||||||
|
SetEnvVar "ANDROID_NDK_HOST" "darwin-x86_64"
|
||||||
SetEnvVar "ANDROID_SDK_HOME" "$sdkTargetFolder"
|
SetEnvVar "ANDROID_API_VERSION" "$sdkApiLevel"
|
||||||
SetEnvVar "ANDROID_NDK_HOME" "$targetFolder/android-ndk-$ndkVersion"
|
|
||||||
SetEnvVar "ANDROID_NDK_HOST" "darwin-x86_64"
|
|
||||||
SetEnvVar "ANDROID_API_VERSION" "$sdkApiLevel"
|
|
||||||
|
|
||||||
echo "Android SDK tools = $toolsVersion" >> ~/versions.txt
|
|
||||||
echo "Android SDK Build Tools = $sdkBuildToolsVersion" >> ~/versions.txt
|
|
||||||
echo "Android SDK API level = $sdkApiLevel" >> ~/versions.txt
|
|
||||||
echo "Android NDK = $ndkVersion" >> ~/versions.txt
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionUnzipTools)
|
|
||||||
echo "Failed to unzip Android SDK Tools."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionUnzipNdk)
|
|
||||||
echo "Failed to unzip Android NDK."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionRmTools)
|
|
||||||
echo "Failed to remove temporary tools package '$toolsTargetFile'."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionRmNdk)
|
|
||||||
echo "Failed to remove temporary NDK package '$ndkTargetFile'."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSdkManager)
|
|
||||||
echo "Failed to run sdkmanager."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
echo "Android SDK tools = $toolsVersion" >> ~/versions.txt
|
||||||
|
echo "Android SDK Build Tools = $sdkBuildToolsVersion" >> ~/versions.txt
|
||||||
|
echo "Android SDK API level = $sdkApiLevel" >> ~/versions.txt
|
||||||
|
echo "Android NDK = $ndkVersion" >> ~/versions.txt
|
||||||
|
|||||||
@@ -37,8 +37,6 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
# shellcheck source=../common/unix/InstallFromCompressedFileFromURL.sh
|
# shellcheck source=../common/unix/InstallFromCompressedFileFromURL.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/InstallFromCompressedFileFromURL.sh"
|
source "${BASH_SOURCE%/*}/../common/unix/InstallFromCompressedFileFromURL.sh"
|
||||||
# shellcheck source=../common/unix/SetEnvVar.sh
|
# shellcheck source=../common/unix/SetEnvVar.sh
|
||||||
@@ -54,68 +52,25 @@ opensslSha1="5f26a624479c51847ebd2f22bb9f84b3b44dcb44"
|
|||||||
# QTQAINFRA-1195
|
# QTQAINFRA-1195
|
||||||
opensslTargetLocation="/usr/local/opt/openssl"
|
opensslTargetLocation="/usr/local/opt/openssl"
|
||||||
|
|
||||||
ExceptionCD=100
|
InstallFromCompressedFileFromURL "$opensslDlUrl" "$opensslAltDlUrl" "$opensslSha1" "/tmp/openssl-$opensslVersion" "openssl-$opensslVersion"
|
||||||
ExceptionConfig=101
|
cd "/tmp/openssl-$opensslVersion"
|
||||||
ExceptionMake=102
|
pwd
|
||||||
ExceptionInstall=103
|
sudo ./config --prefix=/usr/local/openssl-$opensslVersion
|
||||||
ExceptionLN=104
|
echo "Running 'make' for OpenSSL"
|
||||||
ExceptionCertificate=105
|
sudo make --silent > /tmp/openssl_make.log 2>&1
|
||||||
ExceptionCleanup=106
|
echo "Running 'make install' for OpenSSL"
|
||||||
|
sudo make --silent install > /tmp/openssl_make_install.log 2>&1
|
||||||
|
|
||||||
try
|
path=$(echo "$opensslTargetLocation" | sed -E 's/(.*)\/.*$/\1/')
|
||||||
(
|
sudo mkdir -p "$path"
|
||||||
InstallFromCompressedFileFromURL "$opensslDlUrl" "$opensslAltDlUrl" "$opensslSha1" "/tmp/openssl-$opensslVersion" "openssl-$opensslVersion"
|
sudo ln -s /usr/local/openssl-$opensslVersion $opensslTargetLocation
|
||||||
cd "/tmp/openssl-$opensslVersion" || throw $ExceptionCD
|
|
||||||
pwd
|
|
||||||
sudo ./config --prefix=/usr/local/openssl-$opensslVersion || throw $ExceptionConfig
|
|
||||||
echo "Running 'make' for OpenSSL"
|
|
||||||
sudo make --silent > /tmp/openssl_make.log 2>&1 || throw $ExceptionMake
|
|
||||||
echo "Running 'make install' for OpenSSL"
|
|
||||||
sudo make --silent install > /tmp/openssl_make_install.log 2>&1 || throw $ExceptionInstall
|
|
||||||
|
|
||||||
path=$(echo "$opensslTargetLocation" | sed -E 's/(.*)\/.*$/\1/')
|
SetEnvVar "PATH" "\"$opensslTargetLocation/bin:\$PATH\""
|
||||||
sudo mkdir -p "$path"
|
SetEnvVar "MANPATH" "\"$opensslTargetLocation/share/man:\$MANPATH\""
|
||||||
sudo ln -s /usr/local/openssl-$opensslVersion $opensslTargetLocation || throw $ExceptionLN
|
|
||||||
|
|
||||||
SetEnvVar "PATH" "\"$opensslTargetLocation/bin:\$PATH\""
|
security find-certificate -a -p /Library/Keychains/System.keychain | sudo tee -a $opensslTargetLocation/ssl/cert.pem
|
||||||
SetEnvVar "MANPATH" "\"$opensslTargetLocation/share/man:\$MANPATH\""
|
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain | sudo tee -a $opensslTargetLocation/ssl/cert.pem
|
||||||
|
|
||||||
security find-certificate -a -p /Library/Keychains/System.keychain | sudo tee -a $opensslTargetLocation/ssl/cert.pem || throw $ExceptionCertificate
|
sudo rm -rf /tmp/openssl-$opensslVersion
|
||||||
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain | sudo tee -a $opensslTargetLocation/ssl/cert.pem || throw $ExceptionCertificate
|
|
||||||
|
|
||||||
sudo rm -rf /tmp/openssl-$opensslVersion || throw $ExceptionCleanup
|
echo "OpenSSL = $opensslVersion" >> ~/versions.txt
|
||||||
|
|
||||||
echo "OpenSSL = $opensslVersion" >> ~/versions.txt
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionCD)
|
|
||||||
echo "Failed to change directory to /tmp/openssl-$opensslVersion."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionConfig)
|
|
||||||
echo "Failed to run config for OpenSSL."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionMake)
|
|
||||||
echo "Failed to run 'make' for OpenSSL."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionInstall)
|
|
||||||
echo "Failed to run 'make install' for OpenSSL."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionLN)
|
|
||||||
echo "Failed to create a soft link for OpenSSL."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionCertificate)
|
|
||||||
echo "Failed to install Certificate for OpenSSL."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionCleanup)
|
|
||||||
echo "Failed to clean up /tmp/openssl-$opensslVersion."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
../common/macos/sha1sum-compatibility.sh
|
||||||
4
coin/provisioning/qtci-osx-10.10-x86_64/06-disable_update_downloads.sh
Executable file
4
coin/provisioning/qtci-osx-10.10-x86_64/06-disable_update_downloads.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
"$BASEDIR"/../common/macos/disable_update_downloads.sh
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
../common/macos/sha1sum-compatibility.sh
|
||||||
@@ -37,33 +37,19 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
|
|
||||||
VNCPassword=qt
|
VNCPassword=qt
|
||||||
NTS_IP=10.212.2.216
|
NTS_IP=10.212.2.216
|
||||||
|
|
||||||
ExceptionDisableScreensaver=100
|
echo "Disable Screensaver"
|
||||||
ExceptionSetInitialDelay=101
|
# For current session
|
||||||
ExceptionSetDelay=102
|
defaults -currentHost write com.apple.screensaver idleTime 0
|
||||||
ExceptionVNC=103
|
|
||||||
ExceptionNTS=104
|
|
||||||
ExceptionDisableScreensaverPassword=105
|
|
||||||
ExceptionDisableSleep=106
|
|
||||||
|
|
||||||
try
|
echo "Disable sleep"
|
||||||
(
|
sudo pmset sleep 0 displaysleep 0
|
||||||
echo "Disable Screensaver"
|
|
||||||
# For current session
|
|
||||||
defaults -currentHost write com.apple.screensaver idleTime 0 || throw $ExceptionDisableScreensaver
|
|
||||||
|
|
||||||
echo "Disable sleep"
|
# For session after a reboot
|
||||||
sudo pmset sleep 0 displaysleep 0 || throw $ExceptionDisableSleep
|
mkdir -p "$HOME/Library/LaunchAgents"
|
||||||
|
cat >"$HOME/Library/LaunchAgents/no-screensaver.plist" <<EOT
|
||||||
# For session after a reboot
|
|
||||||
mkdir -p "$HOME/Library/LaunchAgents" || throw $ExceptionDisableScreensaver
|
|
||||||
(
|
|
||||||
cat >"$HOME/Library/LaunchAgents/no-screensaver.plist" <<EOT
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
|
||||||
@@ -87,54 +73,18 @@ try
|
|||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
EOT
|
EOT
|
||||||
) || throw $ExceptionDisableScreensaver
|
|
||||||
|
|
||||||
defaults write com.apple.screensaver askForPassword -int 0 || throw $ExceptionDisableScreensaverPassword
|
defaults write com.apple.screensaver askForPassword -int 0
|
||||||
|
|
||||||
echo "Set keyboard type rates and delays"
|
echo "Set keyboard type rates and delays"
|
||||||
# normal minimum is 15 (225 ms)
|
# normal minimum is 15 (225 ms)
|
||||||
defaults write -g InitialKeyRepeat -int 15 || throw $ExceptionSetInitialDelay
|
defaults write -g InitialKeyRepeat -int 15
|
||||||
# normal minimum is 2 (30 ms)
|
# normal minimum is 2 (30 ms)
|
||||||
defaults write -g KeyRepeat -int 2 || throw $ExceptionSetDelay
|
defaults write -g KeyRepeat -int 2
|
||||||
|
|
||||||
echo "Enable remote desktop sharing"
|
echo "Enable remote desktop sharing"
|
||||||
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw $VNCPassword -restart -agent -privs -all || throw $ExceptionVNC
|
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw $VNCPassword -restart -agent -privs -all
|
||||||
|
|
||||||
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
echo "Set Network Test Server address to $NTS_IP in /etc/hosts"
|
||||||
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts || throw $ExceptionNTS
|
echo "$NTS_IP qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
)
|
|
||||||
catch || {
|
|
||||||
case $ex_code in
|
|
||||||
$ExceptionDisableScreensaver)
|
|
||||||
echo "Failed to disable screensaver."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSetInitialDelay)
|
|
||||||
echo "Failed to set initial delay of keyboard."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionSetDelay)
|
|
||||||
echo "Failed to set delay of keyboard."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionVNC)
|
|
||||||
echo "Failed to enable VNC."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionNTS)
|
|
||||||
echo "Failed to set NTS."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDisableScreensaverPassword)
|
|
||||||
echo "Failed to disable requiring of password after screensaver is enabled."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
$ExceptionDisableSleep)
|
|
||||||
echo "Failed to disable sleep."
|
|
||||||
exit 1;
|
|
||||||
;;
|
|
||||||
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
4
coin/provisioning/qtci-osx-10.11-x86_64/06-disable_update_downloads.sh
Executable file
4
coin/provisioning/qtci-osx-10.11-x86_64/06-disable_update_downloads.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
BASEDIR=$(dirname "$0")
|
||||||
|
"$BASEDIR"/../common/macos/disable_update_downloads.sh
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
# shellcheck source=../common/macos/InstallPKGFromURL.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/macos/InstallPKGFromURL.sh"
|
source "${BASH_SOURCE%/*}/../common/macos/InstallPKGFromURL.sh"
|
||||||
|
|
||||||
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/osx_10.11_el_capitan/XZ.pkg"
|
PrimaryUrl="http://ci-files01-hki.intra.qt.io/input/mac/osx_10.11_el_capitan/XZ.pkg"
|
||||||
|
|||||||
@@ -44,9 +44,6 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
# shellcheck source=../common/unix/try_catch.sh
|
|
||||||
source "${BASH_SOURCE%/*}/../common/unix/try_catch.sh"
|
|
||||||
|
|
||||||
# shellcheck source=../common/macos/install_xcode.sh
|
# shellcheck source=../common/macos/install_xcode.sh
|
||||||
source "${BASH_SOURCE%/*}/../common/macos/install_xcode.sh"
|
source "${BASH_SOURCE%/*}/../common/macos/install_xcode.sh"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
BASEDIR=$(dirname "$0")
|
BASEDIR=$(dirname "$0")
|
||||||
$BASEDIR/../common/macos/pip.sh
|
$BASEDIR/../common/macos/java.sh
|
||||||
1
coin/provisioning/qtci-windows-10-x86/01-set-proxy.ps1
Normal file
1
coin/provisioning/qtci-windows-10-x86/01-set-proxy.ps1
Normal file
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\set-proxy.ps1"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\disable-windows-updates.ps1"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\win10-enable-devmode.ps1"
|
||||||
1
coin/provisioning/qtci-windows-10-x86/99-unset-proxy.ps1
Normal file
1
coin/provisioning/qtci-windows-10-x86/99-unset-proxy.ps1
Normal file
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\unset-proxy.ps1"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\set-proxy.ps1"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\win10-enable-devmode.ps1"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\unset-proxy.ps1"
|
||||||
1
coin/provisioning/qtci-windows-7-x86/01-set-proxy.ps1
Normal file
1
coin/provisioning/qtci-windows-7-x86/01-set-proxy.ps1
Normal file
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\set-proxy.ps1"
|
||||||
1
coin/provisioning/qtci-windows-7-x86/99-unset-proxy.ps1
Normal file
1
coin/provisioning/qtci-windows-7-x86/99-unset-proxy.ps1
Normal file
@@ -0,0 +1 @@
|
|||||||
|
. "$PSScriptRoot\..\common\windows\unset-proxy.ps1"
|
||||||
2
qt3d
2
qt3d
Submodule qt3d updated: c40c7ac6b5...2970ef3dac
Submodule qtactiveqt updated: d895e5d8f1...0ae99f0961
Submodule qtandroidextras updated: aa7acf474f...cdc314011e
2
qtbase
2
qtbase
Submodule qtbase updated: 58541d1c68...35a36ad478
Submodule qtcanvas3d updated: 08b2b0033d...5b920d86db
2
qtcharts
2
qtcharts
Submodule qtcharts updated: 31127e1f29...47e3a4b818
Submodule qtconnectivity updated: a7be018dfa...b88b57c56b
Submodule qtdatavis3d updated: 8bfa8a8ef3...c3c6e604ee
Submodule qtdeclarative updated: 8fdf466741...f23d1d54a0
2
qtdoc
2
qtdoc
Submodule qtdoc updated: de869e95fa...f9fcff9e78
Submodule qtgamepad updated: da6d567a54...d1054b8e44
Submodule qtgraphicaleffects updated: 8e86608f28...c9a0a0f661
Submodule qtimageformats updated: 25d7e0440f...bcc376e41f
Submodule qtlocation updated: cc3a5a926d...4f8604bf7a
Submodule qtmacextras updated: 970a10176c...cf413fec4e
Submodule qtmultimedia updated: 2cc31ddded...01fd723848
Submodule qtnetworkauth updated: e62fdc9887...92f6d5d612
Submodule qtpurchasing updated: a58433b78f...2c67f36dc8
2
qtqa
2
qtqa
Submodule qtqa updated: 0d050f36dc...46daf8aac2
Submodule qtquickcontrols updated: 93c5dc8b5a...75e9561d4f
Submodule qtquickcontrols2 updated: 83da5b251d...9a29506000
Submodule qtremoteobjects updated: dc2a27771d...7aef155a56
Submodule qtrepotools updated: c112252bc2...5655cafd10
2
qtscript
2
qtscript
Submodule qtscript updated: 36e82de438...945a4b0ad7
2
qtscxml
2
qtscxml
Submodule qtscxml updated: 0d6105563d...e5bfed810c
Submodule qtsensors updated: dcc4d0b58a...b50891d2d5
Submodule qtserialbus updated: 38c64b11c9...80d0443a30
Submodule qtserialport updated: 6f62e9de52...e40bf5347c
2
qtspeech
2
qtspeech
Submodule qtspeech updated: fd6648b0b7...92c593cd18
2
qtsvg
2
qtsvg
Submodule qtsvg updated: a2156af9ed...24273f154a
2
qttools
2
qttools
Submodule qttools updated: 99235a6262...0c112f5980
Submodule qttranslations updated: 6ccd657678...23cc9020b9
Submodule qtvirtualkeyboard updated: 1838b75f6c...5c9ce0adf6
Submodule qtwayland updated: 79cde9fba8...51b84d998b
Submodule qtwebchannel updated: 5821cad4ca...a9f8d06fe1
Submodule qtwebengine updated: 2e06a05140...7af0066e50
Submodule qtwebsockets updated: 0b418f5512...74ea21a46d
Submodule qtwebview updated: c47248d9a2...4acd68bc1c
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user