Add Android bundletool provisioning

Tool allows managing modern android bundles. Provision it on RHEL
8.10 platform - the one we use for the Qt for Android x86_64 builds.

Change-Id: Ia1a7bb077e9dc0afc95ad92cbd85c96724ab0ced
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
Alexey Edelev 2025-05-05 20:35:23 +02:00
parent ac925212d6
commit efb8dc4713
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Copyright (C) 2025 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
# shellcheck source=../unix/SetEnvVar.sh
source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh"
# shellcheck source=../unix/DownloadURL.sh
source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh"
version="1.18.1"
internalUrl="http://ci-files01-hki.ci.qt.io/input/bundletool/bundletool-all-$version.jar"
externalUrl="https://github.com/google/bundletool/releases/download/$version/bundletool-all-$version.jar"
sha256="675786493983787ffa11550bdb7c0715679a44e1643f3ff980a529e9c822595c"
targetFile="$HOME/bundletool"
installPrefix="/opt/bundletool"
DownloadURL "$internalUrl" "$externalUrl" "$sha256" "$targetFile"
sudo mkdir -p "$installPrefix"
sudo mv "$targetFile" "$installPrefix/bundletool"
SetEnvVar "Bundletool_EXECUTABLE" "$installPrefix/bundletool"
echo "bundletool = $version" >> ~/versions.txt

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Copyright (C) 2025 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
set -ex
# shellcheck source=../common/linux/install-android-bundletool.sh
source "${BASH_SOURCE%/*}/../common/linux/install-android-bundletool.sh"