No Manual Images for 103 Mini-Games: Automating Screenshots, Covers, Packaging, and Store Submission
When the same game must exist as a TapTap H5 package, a source bundle for HuZhan, and a Xianyu chat-file product, manual asset work multiplies per store. This pipeline collapses that into one single-file ZIP and a few scripts, making store compliance a compile-time step instead of a Photoshop marathon.
Store publishing for 103 AI-coded mini-games is a four-layer pipeline. Headless Chrome captures gameplay screenshots with a virtual-time budget and injected test hooks that steer each game into a photogenic state. Cover cards are plain HTML templates; the same markup renders the five cover sizes TapTap, GameDistribution, GameMonetize, HuZhan, and Xianyu each demand, with only a game name, selling point, and dominant color swapped per title. Every game is forced into a single index.html using Canvas-drawn graphics and WebAudio sound, so one ZIP uploads everywhere, and SDKs are conditioned to load only when the hostname matches a platform domain.
On the submission side, DataTransfer injection fills file inputs, with a direct fetch POST as the fallback for components like Dropzone.js that ignore synthetic events. Three rejections yielded hard rules: TapTap's first-release quota (one submission per 24 hours, three per 168), Xianyu's emoji ban in descriptions, and HuZhan's refusal to allow bundled game packages. GameMonetize rejected the AI-generated games outright on quality. The current state is three live TapTap titles plus source-code sales, with a planned follow-up covering ad-SDK hooks and CrazyGames' 1,000-play ad threshold.
The test hook is a triple investment: the same window.__tr mechanism that produces attractive gameplay screenshots also drives automated tests and debugging, so store-readiness has near-zero marginal cost once games ship with that hook.
The single-file constraint turns packaging into a trivial operation and lets one artifact serve as an H5 build, a source bundle, and a direct-play link; the only remaining platform-specific work is a conditional SDK loader.
Store policies can directly contradict each other: HuZhan bans multi-game bundles while Xianyu requires them, so a universal ZIP still demands per-platform product structuring.
UI automation hits a wall at the component layer: DataTransfer injection works on raw inputs but fails on Dropzone.js, and the robust route is bypassing the UI and POSTing to the backend endpoint.