From 512f166bb674cc34f68fecd9cc2c4b02660e7252 Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 30 Nov 2026 15:02:39 +0100 Subject: [PATCH] Record visible controls and document text in the previous release --- .github/qa/flatpak-clipboard.sh | 4 ++-- .github/workflows/flatpak-clipboard-qa.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/qa/flatpak-clipboard.sh b/.github/qa/flatpak-clipboard.sh index 7bc958720b..93252d1dd0 100644 --- a/.github/qa/flatpak-clipboard.sh +++ b/.github/qa/flatpak-clipboard.sh @@ -40,8 +40,8 @@ swaymsg 'seat seat0 cursor release button1' sleep .5 printf 'preexisting external contents' | wl-copy grim /tmp/document-scene.png -tesseract /tmp/document-scene.png stdout tsv 2>/dev/null > /tmp/ocr.tsv -awk -F '\t' '$12 == "outbound" {print}' /tmp/ocr.tsv +tesseract /tmp/document-scene.png stdout --psm 11 tsv 2>/dev/null > /tmp/ocr.tsv +awk -F '\t' '$12 != "" {print $7,$8,$12}' /tmp/ocr.tsv | tail -80 read -r tx ty < <(awk -F '\t' '$12 == "outbound" {print int($7+$9/2),int($8+$10/2);exit}' /tmp/ocr.tsv) swaymsg "seat seat0 cursor set $tx $ty" for press in 1 2; do diff --git a/.github/workflows/flatpak-clipboard-qa.yml b/.github/workflows/flatpak-clipboard-qa.yml index 48280d6e2d..de3b8b0ff6 100644 --- a/.github/workflows/flatpak-clipboard-qa.yml +++ b/.github/workflows/flatpak-clipboard-qa.yml @@ -25,3 +25,12 @@ jobs: flatpak --user install -y "$RUNNER_TEMP"/bundle/*.flatpak - name: Copy document text to another app and paste into Find run: dbus-run-session -- bash .github/qa/flatpak-clipboard.sh + + - uses: actions/upload-artifact@v4 + if: always() + with: + name: screenshot-and-ocr + path: | + /tmp/document-scene.png + /tmp/ocr.tsv + if-no-files-found: ignore