Repository navigation
feat: store screenshot pipeline with localized captions - #52
Merged
Merged
Conversation
store-assets/ builds the store images the way Free Game Claimer's do: the real popup captured at 2x from the built extension (tools/capture.mjs, with the background stripped so nothing searches), laid out under its toolbar button in a plain browser window with a headline, a subline and callouts (source/, tools/render.mjs), and saved as 1280x800 RGB PNGs (tools/finalize.py). Three images: the popup, a run in progress and the search settings. The browser frame is a neutral new tab with an empty address bar. Chrome runs in the locale's UI language (-AppleLanguages on macOS, --lang elsewhere) and the capture checks it took. Renders fail if a callout leaves the image or overlaps the popup, or if the frame or captions name Microsoft or Bing; captures fail on any popup image other than the coin logo and Free Game Claimer's icon.
…rademark rules Covers building the i18n branch (PR #51, feat/i18n, not merged yet) and pointing the capture at it with --dist.
The images uploaded to the Chrome Web Store: en, zh_CN, zh_TW, pt_BR, es, es_419 (a copy of es), fr and vi, three each.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
store-assets/, a pipeline for the Chrome Web Store screenshots, in the same style as Free Game Claimer's. These are the images now uploaded to the dashboard: 3 English screenshots replaced the 5 old global ones, plus 3 per language.tools/capture.mjs --locale <name> [--dist <build>]captures the popup with Chrome running in that language (macOS-AppleLanguageswrapper).tools/render.mjs --locale <name|all>renders 1-main, 2-progress and 3-settings with translated captions.store-assets/chrome/<locale>/, 2.6 MB). Its ownpackage.jsonpins Playwright 1.64.1.wxt/is untouched.--distpointing at a build offeat/i18n; the README shows how.Test plan
--distat afeat/i18nbuild): same as the uploaded images except for anti-aliasing