aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install-qt.sh
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2020-11-20 22:41:25 +0100
committerRichard Weickelt <richard@weickelt.de>2020-11-21 11:33:44 +0000
commit7f1ee5c871699f89e7fdd741fcd1f0b2167a203b (patch)
treeae315d70f8eb20b928ddb42481d0d324d6d1b4e8 /scripts/install-qt.sh
parentb572269a2b8910baf46d668f227bcb0ee247b8c4 (diff)
Install qtcreator from the official release packages
Previously the script used the packages of the online installer. Since all old QtCreator releases have been removed from that repository, we switch to the official release packages which provide .7z files containing prebuilt binaries as well. Change-Id: I5ebf3420ffa25043796f09403ea47cd7f026b602 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'scripts/install-qt.sh')
-rwxr-xr-xscripts/install-qt.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/install-qt.sh b/scripts/install-qt.sh
index f029b62c2..f85ea157a 100755
--- a/scripts/install-qt.sh
+++ b/scripts/install-qt.sh
@@ -235,13 +235,11 @@ function compute_url(){
if [[ "${COMPONENT}" =~ "qtcreator" ]]; then
- REMOTE_BASE="tools_qtcreator/qt.tools.qtcreator"
- REMOTE_PATH="$(${CURL} ${BASE_URL}/${REMOTE_BASE}/ | grep -o -E "${VERSION}[0-9\-]*${COMPONENT}\.7z" | tail -1)"
-
- if [ ! -z "${REMOTE_PATH}" ]; then
- echo "${BASE_URL}/${REMOTE_BASE}/${REMOTE_PATH}"
- return 0
- fi
+ SHORT_VERSION=${VERSION%??}
+ BASE_URL="http://download.qt.io/official_releases/qtcreator"
+ REMOTE_PATH="${SHORT_VERSION}/${VERSION}/installer_source/${HOST_OS}/qtcreator.7z"
+ echo "${BASE_URL}/${REMOTE_PATH}"
+ return 0
else
REMOTE_BASES=(
@@ -330,7 +328,7 @@ for COMPONENT in ${COMPONENTS}; do
if [ "${HOST_OS}" == "mac_x64" ]; then
echo "${INSTALL_DIR}/Qt Creator.app/Contents/MacOS"
else
- echo "${INSTALL_DIR}/Tools/QtCreator/bin"
+ echo "${INSTALL_DIR}/bin"
fi
fi