mirror of
git://code.qt.io/qt/qt5.git
synced 2025-12-23 08:26:14 +08:00
Compare commits
71 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
415527935e | ||
|
|
9b14586f74 | ||
|
|
12231ac87d | ||
|
|
cfad08fae4 | ||
|
|
290d61626b | ||
|
|
9d7a85efa0 | ||
|
|
3706f2de71 | ||
|
|
023944b2d3 | ||
|
|
42a240cb9e | ||
|
|
d88b644c40 | ||
|
|
015c698775 | ||
|
|
3c7ffbabdf | ||
|
|
8e3d30b05f | ||
|
|
2658c06d6d | ||
|
|
2679542ace | ||
|
|
aee07f92f1 | ||
|
|
3ca11e2a81 | ||
|
|
227482aa79 | ||
|
|
99e6f0c480 | ||
|
|
c99c2e8510 | ||
|
|
40fbad4c27 | ||
|
|
c15f11cc06 | ||
|
|
214f78598f | ||
|
|
20ddde5215 | ||
|
|
2bf391ebd1 | ||
|
|
ed288f9132 | ||
|
|
27b951ae11 | ||
|
|
974d3efd81 | ||
|
|
4578721c38 | ||
|
|
47eb374631 | ||
|
|
46b38f0d30 | ||
|
|
b588495693 | ||
|
|
cb3309e4fb | ||
|
|
5a642020c3 | ||
|
|
af56103607 | ||
|
|
31ff39ab7b | ||
|
|
9f5f381673 | ||
|
|
ba6d7235a1 | ||
|
|
2e88845015 | ||
|
|
62efea7477 | ||
|
|
b021c416b5 | ||
|
|
55273d6cc0 | ||
|
|
7aa86c0924 | ||
|
|
ea624475d7 | ||
|
|
64f08a4607 | ||
|
|
e3ef111eae | ||
|
|
f97f0edc10 | ||
|
|
9d021a4170 | ||
|
|
e62979050c | ||
|
|
282de9a961 | ||
|
|
987453db68 | ||
|
|
04ff839c76 | ||
|
|
3bc11ef32e | ||
|
|
a44a53aba2 | ||
|
|
6797c35157 | ||
|
|
9abdbccaf1 | ||
|
|
e29bd4cb85 | ||
|
|
38746546d8 | ||
|
|
dafc99a0d7 | ||
|
|
b40dbab18a | ||
|
|
6e20e9c2b7 | ||
|
|
b02360baa5 | ||
|
|
42fdb9aa58 | ||
|
|
b7f2961bb3 | ||
|
|
872dedd971 | ||
|
|
2caf6349be | ||
|
|
2af56dd556 | ||
|
|
17abff55d5 | ||
|
|
e9ecfdb335 | ||
|
|
26bffd2fab | ||
|
|
2dcb3fea14 |
30
.gitmodules
vendored
30
.gitmodules
vendored
@@ -124,14 +124,14 @@
|
||||
recommends = qtdeclarative qtshadertools
|
||||
path = qt3d
|
||||
url = ../qt3d.git
|
||||
branch = dev
|
||||
status = ignore
|
||||
branch = 6.0
|
||||
status = additionalLibrary
|
||||
[submodule "qtimageformats"]
|
||||
depends = qtbase
|
||||
path = qtimageformats
|
||||
url = ../qtimageformats.git
|
||||
branch = dev
|
||||
status = ignore
|
||||
branch = 6.0
|
||||
status = additionalLibrary
|
||||
[submodule "qtgraphicaleffects"]
|
||||
depends = qtdeclarative
|
||||
path = qtgraphicaleffects
|
||||
@@ -277,8 +277,8 @@
|
||||
depends = qtbase
|
||||
path = qtnetworkauth
|
||||
url = ../qtnetworkauth.git
|
||||
branch = dev
|
||||
status = ignore
|
||||
branch = 6.0
|
||||
status = additionalLibrary
|
||||
[submodule "qtremoteobjects"]
|
||||
depends = qtbase
|
||||
recommends = qtdeclarative
|
||||
@@ -323,3 +323,21 @@
|
||||
url = ../qt5compat.git
|
||||
branch = 6.0
|
||||
status = deprecated
|
||||
[submodule "qtcoap"]
|
||||
depends = qtbase qttools
|
||||
path = qtcoap
|
||||
url = ../qtcoap.git
|
||||
branch = 6.0
|
||||
status = additionalLibrary
|
||||
[submodule "qtmqtt"]
|
||||
depends = qtbase qtdeclarative qttools
|
||||
path = qtmqtt
|
||||
url = ../qtmqtt.git
|
||||
branch = 6.0
|
||||
status = additionalLibrary
|
||||
[submodule "qtopcua"]
|
||||
depends = qtbase qtdeclarative qtquickcontrols2 qttools
|
||||
path = qtopcua
|
||||
url = ../qtopcua.git
|
||||
branch = 6.0
|
||||
status = additionalLibrary
|
||||
|
||||
@@ -9,7 +9,7 @@ cmake_minimum_required(VERSION ${__qt_minimum_cmake_version})
|
||||
include("${__qt6_qtbase_src_path}/cmake/QtAutoDetect.cmake")
|
||||
|
||||
project(Qt
|
||||
VERSION 6.0.1
|
||||
VERSION "${QT_REPO_MODULE_VERSION}"
|
||||
DESCRIPTION "Qt Libraries"
|
||||
HOMEPAGE_URL "https://qt.io/"
|
||||
LANGUAGES CXX C ASM
|
||||
|
||||
@@ -39,7 +39,7 @@ Configurations:
|
||||
-
|
||||
Template: 'qtci-linux-openSUSE-15.1-x86_64'
|
||||
Compiler: 'GCC'
|
||||
Features: ['Sccache', 'InsignificantTests']
|
||||
Features: ['Sccache']
|
||||
Configure arguments: '-DQT_BUILD_EXAMPLES=OFF -DFEATURE_developer_build=ON -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache'
|
||||
Environment variables: ['NON_QTBASE_CONFIGURE_ARGS=-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache',
|
||||
'TEST_CONFIGURE_ARGS=-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache']
|
||||
|
||||
@@ -6,7 +6,7 @@ Configurations:
|
||||
Target arch: 'armv7'
|
||||
Compiler: 'GCC'
|
||||
Platform dependency: 'Ubuntu-20.04-host'
|
||||
Features: ['Sccache', 'InsignificantTests']
|
||||
Features: ['Sccache', 'DisableTests']
|
||||
Environment variables: [
|
||||
'TARGET_CONFIGURE_ARGS=-DQT_BUILD_EXAMPLES=OFF -DFEATURE_developer_build=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON -DCMAKE_TOOLCHAIN_FILE={{.Env.QEMUARMV7_TOOLCHAIN_SYSROOT}}/../x86_64-pokysdk-linux/usr/share/cmake/OEToolchainConfig.cmake -DQT_FEATURE_system_harfbuzz=OFF -DQT_QMAKE_TARGET_MKSPEC=devices/linux-imx7-g++ -DQT_QMAKE_DEVICE_OPTIONS="CROSS_COMPILE=/opt/yocto-armv7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-;DISTRO_OPTS=hard-float boot2qt" -DCMAKE_STAGING_PREFIX=/home/qt/work/install/target -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DFEATURE_forkfd_pidfd=OFF -DWARNINGS_ARE_ERRORS=OFF',
|
||||
'QT_YOCTO_ENVSETUP={{.Env.QEMUARMV7_TOOLCHAIN_SYSROOT}}/../../environment-setup-armv7at2hf-neon-poky-linux-gnueabi',
|
||||
@@ -22,7 +22,7 @@ Configurations:
|
||||
Target arch: 'arm64'
|
||||
Compiler: 'GCC'
|
||||
Platform dependency: 'Ubuntu-20.04-host'
|
||||
Features: ['Sccache', 'InsignificantTests']
|
||||
Features: ['Sccache', 'DisableTests']
|
||||
Environment variables: [
|
||||
'TARGET_CONFIGURE_ARGS=-DQT_BUILD_EXAMPLES=OFF -DFEATURE_developer_build=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON -DCMAKE_TOOLCHAIN_FILE={{.Env.QEMUARM64_TOOLCHAIN_SYSROOT}}/../x86_64-pokysdk-linux/usr/share/cmake/OEToolchainConfig.cmake -DQT_FEATURE_system_harfbuzz=OFF -DQT_QMAKE_TARGET_MKSPEC=devices/linux-generic-g++ -DQT_QMAKE_DEVICE_OPTIONS="CROSS_COMPILE=/opt/yocto-arm64/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux-;DISTRO_OPTS=boot2qt" -DCMAKE_STAGING_PREFIX=/home/qt/work/install/target -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DFEATURE_forkfd_pidfd=OFF -DWARNINGS_ARE_ERRORS=OFF',
|
||||
'QT_YOCTO_ENVSETUP={{.Env.QEMUARM64_TOOLCHAIN_SYSROOT}}/../../environment-setup-aarch64-poky-linux',
|
||||
@@ -38,7 +38,7 @@ Configurations:
|
||||
Target arch: 'mips64'
|
||||
Compiler: 'GCC'
|
||||
Platform dependency: 'Ubuntu-20.04-host'
|
||||
Features: ['Sccache', 'InsignificantTests', 'DisableTests']
|
||||
Features: ['Sccache', 'DisableTests']
|
||||
Environment variables: [
|
||||
'TARGET_CONFIGURE_ARGS=-DQT_BUILD_EXAMPLES=OFF -DFEATURE_developer_build=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DQT_BUILD_TOOLS_WHEN_CROSSCOMPILING=ON -DCMAKE_TOOLCHAIN_FILE={{.Env.QEMUMIPS64_TOOLCHAIN_SYSROOT}}/../x86_64-pokysdk-linux/usr/share/cmake/OEToolchainConfig.cmake -DQT_FEATURE_system_harfbuzz=OFF -DQT_QMAKE_TARGET_MKSPEC=devices/linux-generic-g++ -DQT_QMAKE_DEVICE_OPTIONS="CROSS_COMPILE=/opt/yocto-mips64/sysroots/x86_64-pokysdk-linux/usr/bin/mips64-poky-linux/mips64-poky-linux-;DISTRO_OPTS=boot2qt" -DCMAKE_STAGING_PREFIX=/home/qt/work/install/target -DCMAKE_AUTOGEN_VERBOSE=ON -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DFEATURE_forkfd_pidfd=OFF -DWARNINGS_ARE_ERRORS=OFF',
|
||||
'QT_YOCTO_ENVSETUP={{.Env.QEMUMIPS64_TOOLCHAIN_SYSROOT}}/../../environment-setup-mips64r2-poky-linux',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2017 The Qt Company Ltd.
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -33,6 +33,9 @@
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# shellcheck source=./../unix/DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
|
||||
# This script installs Xcode
|
||||
# Prerequisites: Have Xcode prefetched to local cache as xz compressed.
|
||||
# This can be achieved by fetching Xcode_8.xip from Apple Store.
|
||||
@@ -52,7 +55,12 @@ function InstallXCode() {
|
||||
if [[ $sourceFile =~ tar ]]; then
|
||||
cd /Applications/ && sudo tar -zxf "$sourceFile"
|
||||
elif [[ $sourceFile =~ "xip" ]]; then
|
||||
cd /Applications/ && xip -x "$sourceFile"
|
||||
if [[ $sourceFile =~ "http" ]]; then
|
||||
Download $sourceFile /Applications/Xcode_$version.xip
|
||||
cd /Applications/ && xip -x "Xcode_$version.xip"
|
||||
else
|
||||
cd /Applications/ && xip -x "$sourceFile"
|
||||
fi
|
||||
else
|
||||
xzcat < "$sourceFile" | (cd /Applications/ && sudo cpio -dmi)
|
||||
fi
|
||||
|
||||
50
coin/provisioning/common/macos/nodejs.sh
Executable file
50
coin/provisioning/common/macos/nodejs.sh
Executable file
@@ -0,0 +1,50 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2021 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$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# shellcheck source=./../unix/DownloadURL.sh
|
||||
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
|
||||
|
||||
# This script will install Nodejs
|
||||
|
||||
version="14.16.1"
|
||||
urlCache="http://ci-files01-hki.ci.local/input/nodejs/node-v$version.pkg"
|
||||
urlOffcial="https://nodejs.org/dist/v$version/node-v$version.pkg"
|
||||
sha1="4720274971c40fe51b2c647060f77c45fb4949a7"
|
||||
|
||||
DownloadURL $urlCache $urlOffcial $sha1 "/tmp/node-v$version.pkg"
|
||||
sudo installer -pkg "/tmp/node-v$version.pkg" -target /
|
||||
|
||||
echo "Nodejs = $version" >> ~/versions.txt
|
||||
|
||||
@@ -41,7 +41,7 @@ set -ex
|
||||
# This script will fetch and extract pre-buildt squish package for Linux and Mac.
|
||||
# Squish is need by Release Test Automation (RTA)
|
||||
|
||||
version="6.7-20210119-1632"
|
||||
version="6.7-20210318-1241"
|
||||
qtBranch="60x"
|
||||
installFolder="/opt"
|
||||
squishFolder="$installFolder/squish"
|
||||
@@ -49,12 +49,15 @@ preBuildCacheUrl="ci-files01-hki.intra.qt.io:/hdd/www/input/squish/jenkins_build
|
||||
licenseUrl="http://ci-files01-hki.intra.qt.io/input/squish/coin/515x/.squish-3-license"
|
||||
licenseSHA="e000d2f95b30b82f405b9dcbeb233cd43710a41a"
|
||||
if uname -a |grep -q Darwin; then
|
||||
version="6.6.1"
|
||||
compressedFolder="prebuild-squish-$version-515x-macx86_64.tar.gz"
|
||||
sha1="9fff9a7cb037214d21f47f2cc53747885fd1f2ae"
|
||||
#macOS package had to redo, so it's having same filename but different location to
|
||||
#keep previous provisioning in working state
|
||||
preBuildCacheUrl="ci-files01-hki.intra.qt.io:/hdd/www/input/squish/jenkins_build/stable/6.7_rerun"
|
||||
version="6.7-20210301-1401"
|
||||
compressedFolder="prebuild-squish-$version-$qtBranch-macx86_64.tar.gz"
|
||||
sha1="e82701ffc1eb465dce3163ce7eab9ccaedc568c1"
|
||||
else
|
||||
compressedFolder="prebuild-squish-$version-$qtBranch-linux64.tar.gz"
|
||||
sha1="8780665c3560456cd86980802cb24513233444fe"
|
||||
sha1="80b3f36e760963a6989a49c79818bf8671d1932a"
|
||||
fi
|
||||
|
||||
mountFolder="/tmp/squish"
|
||||
@@ -113,31 +116,24 @@ if uname -a |grep -q "Ubuntu"; then
|
||||
echo "export SQUISH_PATH=$squishFolder/squish_for_qt6" >> ~/.profile
|
||||
echo "export PATH=\$PATH:$squishFolder/squish_for_qt6/bin" >> ~/.profile
|
||||
else
|
||||
echo "export SQUISH_PATH=$squishFolder/squish_for_qt" >> ~/.bashrc
|
||||
echo "export PATH=\$PATH:$squishFolder/squish_for_qt/bin" >> ~/.bashrc
|
||||
echo "export SQUISH_PATH=$squishFolder/squish_for_qt6" >> ~/.bashrc
|
||||
echo "export PATH=\$PATH:$squishFolder/squish_for_qt6/bin" >> ~/.bashrc
|
||||
fi
|
||||
|
||||
echo "Verifying Squish, available installations:"
|
||||
ls -la $squishFolder
|
||||
if uname -a |grep -q Darwin; then
|
||||
if "$squishFolder/squish_for_qt/bin/squishrunner" --testsuite "$squishFolder/suite_test_squish" | grep "Squish test run successfully" ; then
|
||||
echo "Squish for Qt installation tested successfully"
|
||||
else
|
||||
echo "Squish for Qt test failed! Package wasn't installed correctly."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if "$squishFolder/squish_for_qt5/bin/squishrunner" --testsuite "$squishFolder/suite_test_squish" | grep "Squish test run successfully" ; then
|
||||
echo "Squish for Qt5 installation tested successfully"
|
||||
else
|
||||
if "$squishFolder/squish_for_qt5/bin/squishrunner" --testsuite "$squishFolder/suite_test_squish" | grep "Squish test run successfully" ; then
|
||||
echo "Squish for Qt5 installation tested successfully"
|
||||
else
|
||||
echo "Squish for Qt5 test failed! Package wasn't installed correctly."
|
||||
exit 1
|
||||
fi
|
||||
if "$squishFolder/squish_for_qt6/bin/squishrunner" --testsuite "$squishFolder/suite_test_squish" | grep "Squish test run successfully" ; then
|
||||
echo "Squish for Qt6 installation tested successfully"
|
||||
else
|
||||
echo "Squish for Qt6 test failed! Package wasn't installed correctly."
|
||||
exit 1
|
||||
fi
|
||||
echo "Squish for Qt5 test failed! Package wasn't installed correctly."
|
||||
exit 1
|
||||
fi
|
||||
if "$squishFolder/squish_for_qt6/bin/squishrunner" --testsuite "$squishFolder/suite_test_squish" | grep "Squish test run successfully" ; then
|
||||
echo "Squish for Qt6 installation tested successfully"
|
||||
else
|
||||
echo "Squish for Qt6 test failed! Package wasn't installed correctly."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
# This script will pre-installed squish package for Windows.
|
||||
# Squish is need by Release Test Automation (RTA)
|
||||
|
||||
$version = "6.7-20210112-1612"
|
||||
$version = "6.7-20210319-0956"
|
||||
$qtBranch = "60x"
|
||||
$targetDir = "C:\Utils\squish"
|
||||
$squishPackage = "C:\Utils\rta_squish"
|
||||
@@ -50,7 +50,7 @@ Write-Host "Installing Squish license to home directory"
|
||||
Copy-Item $licenseUrl\$licensePackage ~\$licensePackage
|
||||
|
||||
if (Is64BitWinHost) {
|
||||
$arch = "x64"
|
||||
$arch = "x64"
|
||||
} else {
|
||||
$arch = "x86"
|
||||
}
|
||||
@@ -60,15 +60,10 @@ $OSVersion = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\Curren
|
||||
if ($OSVersion -eq "Windows 10 Enterprise") {
|
||||
$winVersion = "win10"
|
||||
if (Is64BitWinHost) {
|
||||
$sha1 = "628bb65cf515d08df388b0dc4d5b403e4c6657b2"
|
||||
} else {
|
||||
$sha1 = "9c0fc186605522ac0ac11066c10c3f3e8a95a705"
|
||||
#Remove special handling when all packages are in same dir, exception now for win10 x86->the archive had to be rebuild
|
||||
$squishUrl = "\\ci-files01-hki.intra.qt.io\provisioning\squish\jenkins_build\stable\6.6.1_rerun"
|
||||
$sha1 = "61eca4950d24d9780e02cd4183c54009eda46114"
|
||||
}
|
||||
} elseif ($OSVersion -eq "Windows 7 Enterprise") {
|
||||
$winVersion = "win7"
|
||||
$sha1 = "ec890c16bb671ae79b093ba81e6567d2780f85a2"
|
||||
} else {
|
||||
$winVersion = "n/a"
|
||||
}
|
||||
$squishArchive = "prebuild-squish-$version-$qtBranch-$winVersion-$arch.zip"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
############################################################################
|
||||
##
|
||||
## Copyright (C) 2020 The Qt Company Ltd.
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -37,13 +37,13 @@
|
||||
# NOTE! Visual Studio is pre-installed to tier 1 image so this script won't install the whole Visual Studio. See ../../../pre-provisioning/qtci-windows-10-x86_64/msvc2019.txt
|
||||
# MSVC 2019 online installers can be found from here https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#installing-an-earlier-release
|
||||
|
||||
$version = "16_7_5"
|
||||
$version = "16_9_4"
|
||||
$urlCache_vsInstaller = "\\ci-files01-hki.intra.qt.io\provisioning\windows\msvc\vs2019_Professional_$version.exe"
|
||||
$urlOfficial_vsInstaller = "https://download.visualstudio.microsoft.com/download/pr/e8bc3741-cb70-42aa-9b4e-2bd497de85dd/74b4e599138d5b5824d87ee657b78cbdeb3716f58a9645047e53bb5f68131516/vs_Professional.exe"
|
||||
$sha1_vsInstaller = "70062274c1ae79f5f0f7cb91192347abc1ebcb00"
|
||||
$urlOfficial_vsInstaller = "https://download.visualstudio.microsoft.com/download/pr/3105fcfe-e771-41d6-9a1c-fc971e7d03a7/d60c42571053950bf742db19e30430f76354c95af06afb1364d5b2aab620f4e5/vs_Professional.exe"
|
||||
$sha1_vsInstaller = "03e3896b790b1734434ab12c2e06ca458e67395f"
|
||||
$urlCache_buildToolsInstaller = "\\ci-files01-hki.intra.qt.io\provisioning\windows\msvc\vs2019_BuildTools_$version.exe"
|
||||
$urlOfficial_buildToolsInstaller = "https://download.visualstudio.microsoft.com/download/pr/e8bc3741-cb70-42aa-9b4e-2bd497de85dd/f3713de3e01b7829d529f67d6240116b73cc0743974bb5373a052f9629cc24d2/vs_BuildTools.exe"
|
||||
$sha1_buildToolsInstaller = "efb4600bf9bd09adf55a36e2e5d0d47a3abd481e"
|
||||
$urlOfficial_buildToolsInstaller = "https://download.visualstudio.microsoft.com/download/pr/3105fcfe-e771-41d6-9a1c-fc971e7d03a7/e0c2f5b63918562fd959049e12dffe64bf46ec2e89f7cadde3214921777ce5c2/vs_BuildTools.exe"
|
||||
$sha1_buildToolsInstaller = "59e62e552305e60420154395d79d5261d65f52dc"
|
||||
$installerPath = "C:\Windows\Temp\installer.exe"
|
||||
|
||||
function Install {
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2021 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$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
set -ex
|
||||
|
||||
sudo yum -y install gcc-toolset-9
|
||||
|
||||
echo "source /opt/rh/gcc-toolset-9/enable" >> ~/.bashrc
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2021 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 will set ulimit size for open files
|
||||
# Linker for Qt Webengine builds needs to open a multiple files. Without this it will hit the limit.
|
||||
|
||||
file="/etc/security/limits.conf"
|
||||
file2="/etc/pam.d/common-session"
|
||||
sudo sed -i '/End of file/d' $file
|
||||
sudo tee -a $file <<"EOF"
|
||||
* soft nproc 4096
|
||||
* hard nproc 4096
|
||||
* soft nofile 4096
|
||||
* hard nofile 4096
|
||||
root soft nproc 4096
|
||||
root hard nproc 4096
|
||||
root soft nofile 4096
|
||||
root hard nofile 4096
|
||||
# End of file
|
||||
EOF
|
||||
|
||||
sudo sed -i '/end of pam-auth-update config/d' $file2
|
||||
sudo tee -a $file2 <<"EOF"
|
||||
session required pam_limits.so
|
||||
# end of pam-auth-update config
|
||||
EOF
|
||||
@@ -189,6 +189,8 @@ installPackages+=(libhyphen-dev)
|
||||
installPackages+=(ssh)
|
||||
# For bitbake
|
||||
installPackages+=(diffstat)
|
||||
# Vulkan is needed for examples
|
||||
installPackages+=(libvulkan-dev)
|
||||
|
||||
echo "Running update for apt"
|
||||
waitLoop
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2019 The Qt Company Ltd.
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -97,4 +97,16 @@ 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
|
||||
|
||||
sudo systemsetup settimezone GMT
|
||||
# Setting Time Zone seems to be flaky in macOS 10.13 and in macOS 10.14. Checking that Time Zone is correct. If not, reset it.
|
||||
if [[ $(sudo systemsetup -gettimezone) = *GMT* ]]; then
|
||||
echo "Time Zone is GMT"
|
||||
else
|
||||
echo "Wrong Time Zone. Reset Time Zone to GMT"
|
||||
sleep 5
|
||||
sudo systemsetup settimezone GMT
|
||||
if [[ $(sudo systemsetup -gettimezone) != *GMT* ]]; then
|
||||
echo "Couldn't set Time Zone!"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
sudo rm -f "$targetFile"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
brew install nodejs
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/nodejs.sh"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2019 The Qt Company Ltd.
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -97,5 +97,17 @@ 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
|
||||
|
||||
sudo systemsetup settimezone GMT
|
||||
# Setting Time Zone seems to be flaky in macOS 10.13 and in macOS 10.14. Checking that Time Zone is correct. If not, reset it.
|
||||
if [[ $(sudo systemsetup -gettimezone) = *GMT* ]]; then
|
||||
echo "Time Zone is GMT"
|
||||
else
|
||||
echo "Wrong Time Zone. Reset Time Zone to GMT"
|
||||
sleep 5
|
||||
sudo systemsetup settimezone GMT
|
||||
if [[ $(sudo systemsetup -gettimezone) != *GMT* ]]; then
|
||||
echo "Couldn't set Time Zone!"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
sudo systemsetup setusingnetworktime off
|
||||
sudo rm -f "$targetFile"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2018 The Qt Company Ltd.
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -50,4 +50,4 @@ set -ex
|
||||
# shellcheck source=../common/macos/install_xcode.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/install_xcode.sh"
|
||||
|
||||
InstallXCode /net/ci-files01-hki.intra.qt.io/hdd/www/input/mac/macos_10.14_mojave/Xcode_11.3.tar.gz 11.3
|
||||
InstallXCode http://ci-files01-hki.intra.qt.io/input/mac/macos_10.14_mojave/Xcode_11.3.1.xip 11.3.1
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2018 The Qt Company Ltd.
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -37,10 +37,10 @@ set -ex
|
||||
|
||||
# shellcheck source=../common/macos/install-commandlinetools.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/install-commandlinetools.sh"
|
||||
version="11.3"
|
||||
version="11.3.1"
|
||||
packageName="Command_Line_Tools_for_Xcode_$version.dmg"
|
||||
url="http://ci-files01-hki.intra.qt.io/input/mac/macos_10.14_mojave/$packageName"
|
||||
sha1="b42a0fdf69ac46de04812cd23f0eefa141371253"
|
||||
sha1="cec5824d127bba2d2a3ba8e5343ae7a32214e62c"
|
||||
|
||||
InstallCommandLineTools $url $url $sha1 $packageName $version
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
brew install nodejs
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/nodejs.sh"
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2020 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$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# Install tools for singing packages
|
||||
# This script assume that OS is vanilla. Target machine dosen't have any signing certificates installed.
|
||||
|
||||
set -ex
|
||||
|
||||
cache="http://ci-files01-hki.intra.qt.io/input"
|
||||
cacheSigningTools="$cache/mac/sign_tools"
|
||||
targetFolder="/Users/qt"
|
||||
keychains="$targetFolder/Library/Keychains"
|
||||
|
||||
Install() {
|
||||
|
||||
url=$1
|
||||
targetFile=$2
|
||||
expectedSha1=$3
|
||||
|
||||
echo "Fetching $targetFile from $url..."
|
||||
curl --retry 5 --retry-delay 10 --retry-max-time 60 "$url" -o "$targetFile"
|
||||
shasum "$targetFile" |grep "$expectedSha1"
|
||||
|
||||
}
|
||||
|
||||
# qt-license
|
||||
sha1QtLicense="9d59241d16f68d914f1c7aa1dc23e05faa169e8d"
|
||||
Install "$cache/semisecure/.qt-license" "$targetFolder/.qt-license" $sha1QtLicense
|
||||
|
||||
# Login keychain
|
||||
sha1LoginKeychainPassword="aae58d00d0a1b179a09f21cfc67f9d16fb95ff36"
|
||||
Install "$cacheSigningTools/login_keychain_password.txt" "$targetFolder/login_keychain_password.txt" "$sha1LoginKeychainPassword"
|
||||
{ loginKeychainPassword=$(cat "$targetFolder/login_keychain_password.txt"); } 2> /dev/null
|
||||
loginKeychain=$keychains/login.keychain
|
||||
|
||||
echo "Setting login.keychain as default keychain.."
|
||||
security default-keychain -s $loginKeychain*
|
||||
echo "Unlocking Login keychain with password.."
|
||||
{ security unlock-keychain -p "$loginKeychainPassword" $loginKeychain*; } 2> /dev/null
|
||||
|
||||
echo "remove the "Lock after X minutes of inactivity" from login.keychain"
|
||||
security set-keychain-settings $loginKeychain
|
||||
|
||||
# Apple Worldwide Developer Relations Certification Authority -> https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
|
||||
sha1AppleWWDRCA="ff6797793a3cd798dc5b2abef56f73edc9f83a64"
|
||||
Install "$cacheSigningTools/AppleWWDRCA.cer" "$targetFolder/AppleWWDRCA.cer" $sha1AppleWWDRCA
|
||||
sudo security add-certificates -k $loginKeychain* "$targetFolder/AppleWWDRCA.cer"
|
||||
|
||||
# Developer ID Certification Authority -> https://www.apple.com/certificateauthority/DeveloperIDCA.cer
|
||||
sha1DeveloperIDCA="3b166c3b7dc4b751c9fe2afab9135641e388e186"
|
||||
Install "$cacheSigningTools/DeveloperIDCA.cer" "$targetFolder/DeveloperIDCA.cer" $sha1DeveloperIDCA
|
||||
sudo security add-certificates -k $loginKeychain* "$targetFolder/DeveloperIDCA.cer"
|
||||
|
||||
# Create script to unlock keychain 'security unlock-keychain -p 'password' Developer_ID_TheQtCompany.keychain'
|
||||
sha1UnLockKeychain="4398870e3f558ad28c80566b5f70e24dc29ea724"
|
||||
unlockKeychain=$targetFolder/unlock-keychain.sh
|
||||
{ Install "$cacheSigningTools/unlock-keychain.sh" "$unlockKeychain" $sha1UnLockKeychain; } 2> /dev/null
|
||||
sudo chmod 755 "$unlockKeychain"
|
||||
|
||||
# Codesigning requirements file. The bundle identifier in the requirements file should match the identifier of the application that is signed.
|
||||
shaCsreq="2c3f00b1845a0f475673fd6934ba25ea51d1f910"
|
||||
csreq=$targetFolder/csreq_qt_company.txt
|
||||
Install "$cacheSigningTools/csreq_qt_company.txt" "$csreq" $shaCsreq
|
||||
chmod 755 "$csreq"
|
||||
|
||||
# iOS signing tools
|
||||
devIDKeychain="Developer_ID_TheQtCompany.keychain-db"
|
||||
shaDevIdKeychain="972cca1879cdaeeb6042f9879756c748a8d1eddc"
|
||||
Install "$cacheSigningTools/$devIDKeychain" "$keychains/$devIDKeychain" $shaDevIdKeychain
|
||||
echo "Opening $devIDKeychain.."
|
||||
open "$keychains/$devIDKeychain"
|
||||
|
||||
sha1DeveloperIDTheQtCompanyKeychainPassword="d758e067736bbda7a91ffaec66cd38afdaf68ea6"
|
||||
Install "$cacheSigningTools/Developer_ID_TheQtCompany_keychain_password.txt" "$targetFolder/Developer_ID_TheQtCompany_keychain_password.txt" "$sha1DeveloperIDTheQtCompanyKeychainPassword"
|
||||
{ DeveloperIDTheQtCompanyKeychainPassword=$(cat "$targetFolder/Developer_ID_TheQtCompany_keychain_password.txt"); } 2> /dev/null
|
||||
|
||||
echo "Unlocking $devIDKeychain with password.."
|
||||
{ security unlock-keychain -p "$DeveloperIDTheQtCompanyKeychainPassword" $keychains/Developer_ID_TheQtCompany.keychain; } 2> /dev/null
|
||||
security set-keychain-settings $keychains/Developer_ID_TheQtCompany.keychain
|
||||
|
||||
sha1Ios="aae58d00d0a1b179a09f21cfc67f9d16fb95ff36"
|
||||
{ Install "$cacheSigningTools/ios_password.txt" "$targetFolder/ios_password.txt" $sha1Ios; } 2> /dev/null
|
||||
{ iosPassword=$(cat "$targetFolder/ios_password.txt"); } 2> /dev/null
|
||||
|
||||
iPhoneDeveloper="iPhoneDeveloperCiTeam2020.p12"
|
||||
shaIPhoneDeveloper="73136e44fed850f398e85908e4a73f20a6bdd8a2"
|
||||
Install "$cacheSigningTools/latest_ios_cert_2020/$iPhoneDeveloper" "$targetFolder/$iPhoneDeveloper" $shaIPhoneDeveloper
|
||||
echo "Importing $iPhoneDeveloper.."
|
||||
{ security import $targetFolder/$iPhoneDeveloper -k $loginKeychain* -P "$iosPassword" -T /usr/bin/codesign; } 2> /dev/null
|
||||
|
||||
iPhoneDistribution="iPhoneDistributionCiTeam2020.p12"
|
||||
shaIPhoneDistribution="36215c3cbc6bfee48e86aafbd53c56282fe36d8d"
|
||||
Install "$cacheSigningTools/latest_ios_cert_2020/$iPhoneDistribution" "$targetFolder/$iPhoneDistribution" $shaIPhoneDistribution
|
||||
echo "Importing $iPhoneDistribution.."
|
||||
{ security import "$targetFolder/$iPhoneDistribution" -k $loginKeychain* -P "$iosPassword" -T /usr/bin/codesign; } 2> /dev/null
|
||||
|
||||
# Mobileprovision
|
||||
echo "Creating directory $targetFolder/Library/MobileDevice/Provisioning Profiles.."
|
||||
mkdir "$targetFolder/Library/MobileDevice"
|
||||
mkdir "$targetFolder/Library/MobileDevice/Provisioning Profiles"
|
||||
shaMobileprovision="ec9697276253ca7bf4401912236f0e6fde4214da"
|
||||
Install "$cacheSigningTools/latest_ios_cert_2020/iOS_Dev_2020_citeam.mobileprovision" "$targetFolder/Library/MobileDevice/Provisioning Profiles/iOS_Dev_2020_citeam.mobileprovision" $shaMobileprovision
|
||||
|
||||
# Removing password files
|
||||
rm -fr "$targetFolder/login_keychain_password.txt"
|
||||
|
||||
@@ -50,4 +50,4 @@ set -ex
|
||||
# shellcheck source=../common/macos/install_xcode.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/install_xcode.sh"
|
||||
|
||||
InstallXCode /net/ci-files01-hki.intra.qt.io/hdd/www/input/mac/macos_10.15_catalina/Xcode_12.3.xip 12.3
|
||||
InstallXCode /net/ci-files01-hki.intra.qt.io/hdd/www/input/mac/macos_10.15_catalina/Xcode_12.4.xip 12.4
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2020 The Qt Company Ltd.
|
||||
## Copyright (C) 2021 The Qt Company Ltd.
|
||||
## Contact: http://www.qt.io/licensing/
|
||||
##
|
||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||
@@ -37,10 +37,10 @@ set -ex
|
||||
|
||||
# shellcheck source=../common/macos/install-commandlinetools.sh
|
||||
source "${BASH_SOURCE%/*}/../common/macos/install-commandlinetools.sh"
|
||||
version="12.3"
|
||||
version="12.4"
|
||||
packageName="Command_Line_Tools_for_Xcode_$version.dmg"
|
||||
url="http://ci-files01-hki.intra.qt.io/input/mac/macos_10.15_catalina/$packageName"
|
||||
sha1="67d55d5868e1f495a66e2b302e91a3cdea923ca9"
|
||||
sha1="eabb32d167da029dfc70af94de2bf61abd416ca1"
|
||||
|
||||
InstallCommandLineTools $url $url $sha1 $packageName $version
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
brew install nodejs
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
"$BASEDIR/../common/macos/nodejs.sh"
|
||||
|
||||
@@ -1,138 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2020 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$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# Install tools for singing packages
|
||||
# This script assume that OS is vanilla. Target machine dosen't have any signing certificates installed.
|
||||
|
||||
set -ex
|
||||
|
||||
cache="http://ci-files01-hki.intra.qt.io/input"
|
||||
cacheSigningTools="$cache/mac/sign_tools"
|
||||
targetFolder="/Users/qt"
|
||||
keychains="$targetFolder/Library/Keychains"
|
||||
|
||||
Install() {
|
||||
|
||||
url=$1
|
||||
targetFile=$2
|
||||
expectedSha1=$3
|
||||
|
||||
echo "Fetching $targetFile from $url..."
|
||||
curl --retry 5 --retry-delay 10 --retry-max-time 60 "$url" -o "$targetFile"
|
||||
shasum "$targetFile" |grep "$expectedSha1"
|
||||
|
||||
}
|
||||
|
||||
# qt-license
|
||||
sha1QtLicense="9d59241d16f68d914f1c7aa1dc23e05faa169e8d"
|
||||
Install "$cache/semisecure/.qt-license" "$targetFolder/.qt-license" $sha1QtLicense
|
||||
|
||||
# Login keychain
|
||||
sha1LoginKeychainPassword="aae58d00d0a1b179a09f21cfc67f9d16fb95ff36"
|
||||
Install "$cacheSigningTools/login_keychain_password.txt" "$targetFolder/login_keychain_password.txt" "$sha1LoginKeychainPassword"
|
||||
{ loginKeychainPassword=$(cat "$targetFolder/login_keychain_password.txt"); } 2> /dev/null
|
||||
loginKeychain=$keychains/login.keychain
|
||||
|
||||
echo "Setting login.keychain as default keychain.."
|
||||
security default-keychain -s $loginKeychain*
|
||||
echo "Unlocking Login keychain with password.."
|
||||
{ security unlock-keychain -p "$loginKeychainPassword" $loginKeychain*; } 2> /dev/null
|
||||
|
||||
echo "remove the "Lock after X minutes of inactivity" from login.keychain"
|
||||
security set-keychain-settings $loginKeychain
|
||||
|
||||
# Apple Worldwide Developer Relations Certification Authority -> https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
|
||||
sha1AppleWWDRCA="ff6797793a3cd798dc5b2abef56f73edc9f83a64"
|
||||
Install "$cacheSigningTools/AppleWWDRCA.cer" "$targetFolder/AppleWWDRCA.cer" $sha1AppleWWDRCA
|
||||
sudo security add-certificates -k $loginKeychain* "$targetFolder/AppleWWDRCA.cer"
|
||||
|
||||
# Developer ID Certification Authority -> https://www.apple.com/certificateauthority/DeveloperIDCA.cer
|
||||
sha1DeveloperIDCA="3b166c3b7dc4b751c9fe2afab9135641e388e186"
|
||||
Install "$cacheSigningTools/DeveloperIDCA.cer" "$targetFolder/DeveloperIDCA.cer" $sha1DeveloperIDCA
|
||||
sudo security add-certificates -k $loginKeychain* "$targetFolder/DeveloperIDCA.cer"
|
||||
|
||||
# Create script to unlock keychain 'security unlock-keychain -p 'password' Developer_ID_TheQtCompany.keychain'
|
||||
sha1UnLockKeychain="4398870e3f558ad28c80566b5f70e24dc29ea724"
|
||||
unlockKeychain=$targetFolder/unlock-keychain.sh
|
||||
{ Install "$cacheSigningTools/unlock-keychain.sh" "$unlockKeychain" $sha1UnLockKeychain; } 2> /dev/null
|
||||
sudo chmod 755 "$unlockKeychain"
|
||||
|
||||
# Codesigning requirements file. The bundle identifier in the requirements file should match the identifier of the application that is signed.
|
||||
shaCsreq="2c3f00b1845a0f475673fd6934ba25ea51d1f910"
|
||||
csreq=$targetFolder/csreq_qt_company.txt
|
||||
Install "$cacheSigningTools/csreq_qt_company.txt" "$csreq" $shaCsreq
|
||||
chmod 755 "$csreq"
|
||||
|
||||
# iOS signing tools
|
||||
devIDKeychain="Developer_ID_TheQtCompany.keychain-db"
|
||||
shaDevIdKeychain="972cca1879cdaeeb6042f9879756c748a8d1eddc"
|
||||
Install "$cacheSigningTools/$devIDKeychain" "$keychains/$devIDKeychain" $shaDevIdKeychain
|
||||
echo "Opening $devIDKeychain.."
|
||||
open "$keychains/$devIDKeychain"
|
||||
|
||||
sha1DeveloperIDTheQtCompanyKeychainPassword="d758e067736bbda7a91ffaec66cd38afdaf68ea6"
|
||||
Install "$cacheSigningTools/Developer_ID_TheQtCompany_keychain_password.txt" "$targetFolder/Developer_ID_TheQtCompany_keychain_password.txt" "$sha1DeveloperIDTheQtCompanyKeychainPassword"
|
||||
{ DeveloperIDTheQtCompanyKeychainPassword=$(cat "$targetFolder/Developer_ID_TheQtCompany_keychain_password.txt"); } 2> /dev/null
|
||||
|
||||
echo "Unlocking $devIDKeychain with password.."
|
||||
{ security unlock-keychain -p "$DeveloperIDTheQtCompanyKeychainPassword" $keychains/Developer_ID_TheQtCompany.keychain; } 2> /dev/null
|
||||
security set-keychain-settings $keychains/Developer_ID_TheQtCompany.keychain
|
||||
|
||||
sha1Ios="aae58d00d0a1b179a09f21cfc67f9d16fb95ff36"
|
||||
{ Install "$cacheSigningTools/ios_password.txt" "$targetFolder/ios_password.txt" $sha1Ios; } 2> /dev/null
|
||||
{ iosPassword=$(cat "$targetFolder/ios_password.txt"); } 2> /dev/null
|
||||
|
||||
iPhoneDeveloper="iPhoneDeveloperCiTeam2020.p12"
|
||||
shaIPhoneDeveloper="73136e44fed850f398e85908e4a73f20a6bdd8a2"
|
||||
Install "$cacheSigningTools/latest_ios_cert_2020/$iPhoneDeveloper" "$targetFolder/$iPhoneDeveloper" $shaIPhoneDeveloper
|
||||
echo "Importing $iPhoneDeveloper.."
|
||||
{ security import $targetFolder/$iPhoneDeveloper -k $loginKeychain* -P "$iosPassword" -T /usr/bin/codesign; } 2> /dev/null
|
||||
|
||||
iPhoneDistribution="iPhoneDistributionCiTeam2020.p12"
|
||||
shaIPhoneDistribution="36215c3cbc6bfee48e86aafbd53c56282fe36d8d"
|
||||
Install "$cacheSigningTools/latest_ios_cert_2020/$iPhoneDistribution" "$targetFolder/$iPhoneDistribution" $shaIPhoneDistribution
|
||||
echo "Importing $iPhoneDistribution.."
|
||||
{ security import "$targetFolder/$iPhoneDistribution" -k $loginKeychain* -P "$iosPassword" -T /usr/bin/codesign; } 2> /dev/null
|
||||
|
||||
# Mobileprovision
|
||||
echo "Creating directory $targetFolder/Library/MobileDevice/Provisioning Profiles.."
|
||||
mkdir "$targetFolder/Library/MobileDevice"
|
||||
mkdir "$targetFolder/Library/MobileDevice/Provisioning Profiles"
|
||||
shaMobileprovision="ec9697276253ca7bf4401912236f0e6fde4214da"
|
||||
Install "$cacheSigningTools/latest_ios_cert_2020/iOS_Dev_2020_citeam.mobileprovision" "$targetFolder/Library/MobileDevice/Provisioning Profiles/iOS_Dev_2020_citeam.mobileprovision" $shaMobileprovision
|
||||
|
||||
# Removing password files
|
||||
rm -fr "$targetFolder/login_keychain_password.txt"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
. "$PSScriptRoot\..\common\windows\squishInstall.ps1"
|
||||
36
coin/provisioning/qtci-windows-10-x86_64/05-msvc2019.ps1
Normal file
36
coin/provisioning/qtci-windows-10-x86_64/05-msvc2019.ps1
Normal file
@@ -0,0 +1,36 @@
|
||||
#############################################################################
|
||||
##
|
||||
## Copyright (C) 2020 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$
|
||||
##
|
||||
#############################################################################
|
||||
|
||||
# MSVC 2019 and Build Tools are pre-provisioned, but the updating happens with:
|
||||
. "$PSScriptRoot\..\common\windows\update-msvc2019.ps1"
|
||||
|
||||
@@ -72,11 +72,14 @@ Options:
|
||||
Only initialize the specified subset of modules given as the
|
||||
argument. Specified modules must already exist in .gitmodules. The
|
||||
string "all" results in cloning all known modules. The strings
|
||||
"essential", "addon", "preview", "deprecated", "obsolete", and
|
||||
"ignore" refer to classes of modules; "default" maps to
|
||||
"essential,addon,preview,deprecated", which corresponds with the
|
||||
set of maintained modules and is also the default set. Module
|
||||
names may be prefixed with a dash to exclude them from a bigger
|
||||
"essential", "addon", "preview", "deprecated", "obsolete",
|
||||
"additionalLibrary", and "ignore" refer to classes of modules
|
||||
identified by "status=" lines in the .gitmodules file.
|
||||
You can use "default" in the subset as a short-hand for
|
||||
"essential,addon,preview,deprecated", which corresponds to the set of
|
||||
maintained modules included in standard Qt releases; this is also the
|
||||
default module subset when this option is not given. Entries
|
||||
may be prefixed with a dash to exclude them from a bigger
|
||||
set, e.g. "all,-ignore".
|
||||
|
||||
--no-update
|
||||
@@ -294,7 +297,8 @@ use constant {
|
||||
STS_ESSENTIAL => 2,
|
||||
STS_ADDON => 3,
|
||||
STS_DEPRECATED => 4,
|
||||
STS_OBSOLETE => 5
|
||||
STS_OBSOLETE => 5,
|
||||
STS_ADDITIONAL => 6
|
||||
};
|
||||
|
||||
sub git_clone_all_submodules
|
||||
@@ -332,6 +336,8 @@ sub git_clone_all_submodules
|
||||
$subinits{$1} = STS_DEPRECATED;
|
||||
} elsif ($3 eq "obsolete") {
|
||||
$subinits{$1} = STS_OBSOLETE;
|
||||
} elsif ($3 eq "additionalLibrary") {
|
||||
$subinits{$1} = STS_ADDITIONAL;
|
||||
} elsif ($3 eq "ignore") {
|
||||
delete $subinits{$1};
|
||||
} else {
|
||||
@@ -351,6 +357,8 @@ sub git_clone_all_submodules
|
||||
@what = grep { ($subinits{$_} || 0) eq STS_ESSENTIAL } keys %subbases;
|
||||
} elsif ($mod eq "addon") {
|
||||
@what = grep { ($subinits{$_} || 0) eq STS_ADDON } keys %subbases;
|
||||
} elsif ($mod eq "additionalLibrary") {
|
||||
@what = grep { ($subinits{$_} || 0) eq STS_ADDITIONAL } keys %subbases;
|
||||
} elsif ($mod eq "preview") {
|
||||
@what = grep { ($subinits{$_} || 0) eq STS_PREVIEW } keys %subbases;
|
||||
} elsif ($mod eq "deprecated") {
|
||||
@@ -641,7 +649,7 @@ sub run
|
||||
die("Have no origin remote.\n") if (!$url);
|
||||
$url =~ s,\.git$,,;
|
||||
$url =~ s/((?:tqtc-)?qt5)$//;
|
||||
my $qtrepo = $1 or 'qt5';
|
||||
my $qtrepo = $1 || 'qt5';
|
||||
$self->{'base-url'} = $url;
|
||||
|
||||
$self->git_clone_all_submodules($qtrepo, $self->{branch}, $self->{alternates}, @{$self->{'module-subset'}});
|
||||
|
||||
2
qt3d
2
qt3d
Submodule qt3d updated: dd698034fd...22509ec535
Submodule qt5compat updated: 739d144cba...be973b7ee7
2
qtbase
2
qtbase
Submodule qtbase updated: 723077eb35...73621cbf0a
1
qtcoap
Submodule
1
qtcoap
Submodule
Submodule qtcoap added at b2ad0574b3
Submodule qtdeclarative updated: da46b97ed5...77fd3a0969
2
qtdoc
2
qtdoc
Submodule qtdoc updated: 5290cda943...9fc3cc14f3
Submodule qtimageformats updated: 7cb70c7990...e5e4a89ba5
1
qtmqtt
Submodule
1
qtmqtt
Submodule
Submodule qtmqtt added at 8c862dd25d
Submodule qtnetworkauth updated: e151a7afc6...7f01b77b7c
1
qtopcua
Submodule
1
qtopcua
Submodule
Submodule qtopcua added at a510d14c2f
2
qtqa
2
qtqa
Submodule qtqa updated: b0eee13d43...7e0965cb00
Submodule qtquick3d updated: 60a51c975c...28087235ac
Submodule qtquickcontrols2 updated: 7be5c50775...3b4f4a5d4f
Submodule qtquicktimeline updated: b3ff9f762e...f1e06e4a16
Submodule qtrepotools updated: a829867f08...e97f6a4d5a
Submodule qtshadertools updated: 03ee874da2...227f6a9706
2
qtsvg
2
qtsvg
Submodule qtsvg updated: af7b4e8d7d...f1a74f5e68
2
qttools
2
qttools
Submodule qttools updated: e9c0625d07...ec8d842b35
Submodule qttranslations updated: 50facb10cb...8350374091
Submodule qtwayland updated: 49276bc3bf...3d4cee05a5
Reference in New Issue
Block a user