e60c14e376
The Qt installer always seems to install the latest version while the version was assumed to be fixed. This configuration will likely break again with the next Qt update, but it fixes the current Windows builds. Change-Id: Icf4a8fdf10c15e6f6a6eb0451ff30662da613567 Reviewed-on: https://code.wireshark.org/review/32893 Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
29 lines
1,000 B
Bash
Executable file
29 lines
1,000 B
Bash
Executable file
#!/bin/bash
|
|
# Installs Qt on Windows for Travis CI.
|
|
#
|
|
# Copyright (C) 2019 Peter Wu <peter@lekensteyn.nl>
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set -eu -o pipefail
|
|
|
|
if [ -e "$QT5_BASE_DIR/bin/moc.exe" ]; then
|
|
echo "Found an existing Qt installation at $QT5_BASE_DIR"
|
|
exit
|
|
fi
|
|
|
|
echo "Downloading the installer..."
|
|
# https is of no use if it redirects to a http mirror...
|
|
curl -vLo ~/qt-unified-windows-x86-online.exe http://download.qt.io/official_releases/online_installers/qt-unified-windows-x86-online.exe
|
|
|
|
echo "Installing..."
|
|
# Run installer and save the installer output. To avoid hitting the timeout,
|
|
# periodically print some progress. On error, show the full log and abort.
|
|
~/qt-unified-windows-x86-online.exe --verbose --script tools/qt-installer-windows.qs |
|
|
tee ~/qt-installer-output.txt |
|
|
tools/report-progress.sh ||
|
|
(cat ~/qt-installer-output.txt; exit 1)
|
|
|
|
printf 'Installation size: '
|
|
du -sm "$QT5_BASE_DIR" 2>&1 ||
|
|
(cat ~/qt-installer-output.txt; exit 1)
|