Skip to content

Commit

Permalink
Merge pull request #2498 from hoffie/aqt-reduce-downloads
Browse files Browse the repository at this point in the history
Autobuild: Reduce Qt download size & bump aqtinstall to 2.0.6
  • Loading branch information
hoffie authored Mar 13, 2022
2 parents 51bdeaf + c716b3f commit 880b6ff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions autobuild/ios/autobuild_ios_1_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ fi

QT_DIR=/usr/local/opt/qt
QT_VER=$1
AQTINSTALL_VERSION=2.0.5
AQTINSTALL_VERSION=2.0.6

###################
### PROCEDURE ###
###################

echo "Install dependencies..."
python3 -m pip install "aqtinstall==${AQTINSTALL_VERSION}"
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac ios ${QT_VER}
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac ios "${QT_VER}" --archives qtbase qttools qttranslations qtmacextras

# Add the qt binaries to the PATH.
# The clang_64 entry can be dropped when Qt <6.2 compatibility is no longer needed.
Expand Down
4 changes: 2 additions & 2 deletions autobuild/mac/autobuild_mac_1_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

QT_DIR=/usr/local/opt/qt
QT_VER=$1
AQTINSTALL_VERSION=2.0.5
AQTINSTALL_VERSION=2.0.6

###################
### PROCEDURE ###
Expand All @@ -20,7 +20,7 @@ if [[ -d "${QT_DIR}" ]]; then
else
echo "Install dependencies..."
python3 -m pip install "aqtinstall==${AQTINSTALL_VERSION}"
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac desktop ${QT_VER}
python3 -m aqt install-qt --outputdir "${QT_DIR}" mac desktop "${QT_VER}" --archives qtbase qttools qttranslations qtmacextras
fi

# Add the qt binaries to the PATH.
Expand Down
19 changes: 13 additions & 6 deletions autobuild/windows/autobuild_windowsinstaller_1_prepare.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,22 @@ Function Install-Qt {
[string] $QtArch,
[string] $InstallDir
)
$Args = ("--outputdir", "$InstallDir", "windows", "desktop", "$QtVersion", "$QtArch")
$Args = (
"--outputdir", "$InstallDir",
"windows",
"desktop",
"$QtVersion",
"$QtArch",
"--archives", "qtbase", "qttools", "qttranslations", "qtwinextras"
)
aqt install-qt @Args
if ( !$? )
{
echo "WARNING: Qt installation via first aqt run failed, re-starting with different base URL."
aqt install-qt @Args -b https://mirrors.ocf.berkeley.edu/qt/
aqt install-qt -b https://mirrors.ocf.berkeley.edu/qt/ @Args
if ( !$? )
{
throw "Qt installation with args @Arguments failed with exit code $LastExitCode"
throw "Qt installation with args @{Args} failed with exit code $LastExitCode"
}
}
}
Expand All @@ -42,7 +49,7 @@ $QtDir = 'C:\Qt'
$ChocoCacheDir = 'C:\ChocoCache'
$Qt32Version = "5.15.2"
$Qt64Version = "5.15.2"
$AqtinstallVersion = "2.0.5"
$AqtinstallVersion = "2.0.6"
$JackVersion = "1.9.17"
$Msvc32Version = "win32_msvc2019"
$Msvc64Version = "win64_msvc2019_64"
Expand All @@ -63,10 +70,10 @@ else
}

echo "Get Qt 64 bit..."
Install-Qt ${Qt64Version} ${Msvc64Version} ${QtDir}
Install-Qt "${Qt64Version}" "${Msvc64Version}" "${QtDir}"

echo "Get Qt 32 bit..."
Install-Qt ${Qt32Version} ${Msvc32Version} ${QtDir}
Install-Qt "${Qt32Version}" "${Msvc32Version}" "${QtDir}"
}

choco config set cacheLocation $ChocoCacheDir
Expand Down

0 comments on commit 880b6ff

Please sign in to comment.