#!/bin/bash # # android-mktemplate generates a template json file suitable for use with the # androiddeployqt tool. set -eu # QT_PATH is already pre-set in our docker container environment. Includes trailing slash. QT_PATH=${QT_PATH:-/usr/local/Qt-5.15.13/} main() { if [[ $# -ne 2 ]] ; then echo "Usage: android-mktemplate.sh appname output.json" >&2 exit 1 fi local ARG_APPNAME="$1" local ARG_DESTFILE="$2" # Available fields are documented in the template file at # @ref /usr/local/Qt-5.15.13/mkspecs/features/android/android_deployment_settings.prf cat > "${ARG_DESTFILE}" <