Skip to content

Docs: how to screenshot the app, with the scripts - #4

Merged
Qwinty merged 1 commit into
mainfrom
claude/screenshot-docs
Sep 29, 2026
Merged

Qwinty merged 1 commit into
mainfrom
claude/screenshot-docs

Conversation

@Qwinty

@Qwinty Qwinty commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Adds scripts/screenshots/: the scripts behind docs/screenshots/, which until now lived only in agents' scratch folders, and a README on using them.

  • start.ps1 starts a build portable (its own data\, never the real %APPDATA% settings) with WebView2 remote debugging, passing along the flags from tauri.conf.json that the environment variable would otherwise replace.
  • cdp.mjs runs JS in the page (real clicks, or __TAURI_INTERNALS__.invoke) and saves light or dark screenshots at a fixed size.
  • shoot.sh makes one README shot by language, theme and screen; frame.py adds the rounded frame and shadow.
  • README.md: building with the embedded frontend and a test identifier (Plugcam is single-instance, so a running copy would swallow the new one), the 8 × 5 README set, quick UI checks, what doesn't work (screen capture and computer-use tools) and the clean-up.

Checked on current main: start.ps1 came up on port 9222, and shoot.sh produced all five screens (main light, main dark with colour controls, settings light and dark, first-run guide) in Russian. Not re-checked: a main shot with the camera streaming, since the phone was in use by another running Plugcam.

The README set and UI checks go through WebView2's DevTools protocol:
start.ps1 starts a build portable with remote debugging, cdp.mjs runs JS
and saves shots, shoot.sh makes one README shot, frame.py adds the window
frame. README.md covers the build (embedded frontend, test identifier
against single-instance handover), the README set, quick checks, what
doesn't work and the clean-up.
@Qwinty
Qwinty merged commit e92fc0d into main Sep 29, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant