I Got Tired of Updating Play Store Screenshots. So I Automated It!
说明与用途
使用 Playwright 和 Sharp 自动化生成 Google Play 截图,消除了手动 Canva 编辑,提供了所有设备类别的可重复使用图像。
问题
Updating Play Store screenshots required repetitive manual steps: taking screenshots, editing in Canva, adding promotional text, and exporting for multiple device sizes, leading to maintenance of up to 21 images.
结果
The author successfully automated the entire screenshot generation pipeline, eliminating manual Canva work and ensuring consistent, reproducible images across phone, 7‑inch tablet, and 10‑inch tablet categories.
工作流
- 1. Enable screenshot mode via VUE_APP_STORE_SCREENSHOTS=true to create a demo session with mock auth and data.
- 2. Use Playwright to launch a browser, navigate to configured routes from screens.json, wait for specified selectors, and capture raw screenshots.
- 3. Intercept backend API requests with Playwright’s route() to return fixture data, ensuring consistent content.
- 4. Process raw screenshots with Sharp to add backgrounds, headlines, and device-specific dimensions.
- 5. Export the final images and upload them to Google Play.
- 6. Repeat the process whenever the UI changes, without manual Canva editing.
证据
I could automate the whole thing?
Playwright provides a beautiful feature called network interception.
I configured three device profiles.
- 记录日期: 2026-10-24T10:11:37.804Z