fix(app): make --capture failures visible in CI

Mirror the log to stderr in capture mode, report how many screenshots
were written, exit non-zero when none were, and print the capture log
in the CI step with a warning annotation when no images are produced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 10:29:51 +00:00
1 parent d3d1c5db0d
commit 2c4a0c1a47
4 files changed
+48 -9

No files matched your search

+7 -2
View File
@@ -89,9 +89,14 @@ jobs:
- name: Screenshots
if: runner.os == 'Windows'
run: |
src/Titano.App/bin/Release/net10.0-windows/Titano.exe --capture out/screenshots &
set +e
src/Titano.App/bin/Release/net10.0-windows/Titano.exe --capture out/screenshots 2> out/capture.log &
wait $!
ls -la out/screenshots
code=$?
cat out/capture.log
count=$(ls out/screenshots/*.png 2>/dev/null | wc -l)
echo "capture exit code $code, $count screenshot(s)"
if [ "$count" -eq 0 ]; then echo "::warning title=Screenshots::Titano --capture produced no images (exit $code)"; fi
- name: Publish desktop programs (win-x64, self-contained single file)
if: runner.os == 'Windows'