evOo-local/.github/scripts/capture-mobile-android-screenshots.sh
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline
(Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/*
packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
2026-09-20 17:15:16 +02:00

27 lines
736 B
Bash

#!/usr/bin/env bash
set -euo pipefail
report_dir="test-report/mobile-screenshots"
run_log="${RUNNER_TEMP:?}/rakazo-mobile-screenshots.log"
android_log="${RUNNER_TEMP:?}/rakazo-mobile-android.log"
android_log_pid=""
mkdir -p "$report_dir"
exec > >(tee "$run_log") 2>&1
cleanup() {
if [[ -n "$android_log_pid" ]]; then
kill "$android_log_pid" 2>/dev/null || true
fi
cp "$android_log" "$report_dir/android.log" 2>/dev/null || true
cp "$run_log" "$report_dir/run.log" 2>/dev/null || true
}
trap cleanup EXIT
adb install -r apps/mobile/android/app/build/outputs/apk/release/app-release.apk
adb logcat -c
adb logcat > "$android_log" &
android_log_pid=$!
timeout --signal=INT --kill-after=30s 10m pnpm test:mobile-screenshots