monitoring: GUI-AUTOMATION-NOTES + AUTO_ANDROID/AUTO_GUI flags

Document minimal variant; Linux defaults to Android-only automation;
macOS can enable both ecosystems later via flags.
This commit is contained in:
Hernâni Marques 2026-07-17 21:24:05 +02:00
parent cf349bfdb6
commit 07045ca388
No known key found for this signature in database
6 changed files with 231 additions and 193 deletions

View file

@ -20,6 +20,20 @@
#
set -euo pipefail
ROOT=$(cd "$(dirname "$0")" && pwd)
# Platform flags (see GUI-AUTOMATION-NOTES.md). Linux default: Android only.
os=$(uname -s)
case "${AUTO_PLATFORM:-auto}" in
auto) case "$os" in Linux) : "${AUTO_ANDROID:=1}"; : "${AUTO_GUI:=1}" ;; Darwin) : "${AUTO_ANDROID:=1}"; : "${AUTO_GUI:=1}" ;; *) : "${AUTO_ANDROID:=0}"; : "${AUTO_GUI:=0}" ;; esac ;;
linux) : "${AUTO_ANDROID:=1}"; : "${AUTO_GUI:=1}" ;;
macos) : "${AUTO_ANDROID:=1}"; : "${AUTO_GUI:=1}" ;;
*) : "${AUTO_ANDROID:=0}"; : "${AUTO_GUI:=0}" ;;
esac
if [ "${AUTO_ANDROID}" != "1" ]; then
echo "skipped: AUTO_ANDROID=${AUTO_ANDROID} (platform flags — see GUI-AUTOMATION-NOTES.md)"
exit 0
fi
APK_DIR="${APK_DIR:-$ROOT/apks}"
APK_URL="${APK_URL:-https://f-droid.org/repo/net.taler.wallet.fdroid_854.apk}"
APK_NAME="${APK_NAME:-net.taler.wallet.fdroid_854.apk}"