136 lines
7 KiB
Markdown
136 lines
7 KiB
Markdown
# crt-ship
|
|
|
|
Hey. This is my toolchain for shipping mobile games to Google Play and the App Store. I built it while getting my
|
|
own game through both stores, hit every wall on the way (draft apps, edits that die when you touch the Console,
|
|
the "first IAP must ship with a version" dance, data safety CSVs that silently need one more question...), and wrote
|
|
each fix down as code or as a checklist. It works for me, so I open-sourced it. Friends, use it too.
|
|
|
|
It is not a product. No dashboard, no account, no telemetry. A small Bun CLI that talks to the official store APIs,
|
|
plus Claude Code skills that walk you (or Claude) through the parts that are still clicks in a web console.
|
|
|
|
· CRTkafa
|
|
|
|
## What is in the box
|
|
|
|
- **`crt-ship` CLI** (Bun + TypeScript, zero runtime dependencies): store listings, in-app products with regional
|
|
prices, Play Data safety, AAB releases, App Store versions / screenshots / age rating / review details, icons from
|
|
one artwork, and a screenshot renderer (captioned scenes, device frames, 14+ languages incl. RTL and CJK).
|
|
- **Claude Code skills**: ordered steps for each job, which steps are API and which are UI-only (with the exact
|
|
console navigation), the gotchas, and how to verify.
|
|
- **Templates**: config, listing copy, screenshot copy, Data safety CSV, App Privacy answers, Play declarations,
|
|
a studio-wide privacy policy page.
|
|
|
|
## Install
|
|
|
|
As a Claude Code plugin (skills + the `crt-ship` command on Claude's PATH):
|
|
|
|
```
|
|
/plugin marketplace add https://git.crt.fyi/CRT/crt-ship.git
|
|
/plugin install crt-ship@crtkafa
|
|
```
|
|
|
|
As a CLI in your game repo (needs [Bun](https://bun.sh) 1.1+):
|
|
|
|
```sh
|
|
bun add -d git+https://git.crt.fyi/CRT/crt-ship.git
|
|
bunx crt-ship help
|
|
```
|
|
|
|
Extra tools some commands use: `ffmpeg` (icons, screenshots), `cwebp` (optional), `playwright` in your project for
|
|
screenshots (`bun add -d playwright`; it uses Playwright's Chromium or your installed Chrome).
|
|
|
|
## Quick start
|
|
|
|
```sh
|
|
bunx crt-ship init # crt-ship.config.ts, store/*.md, store/shots/copy.json, privacy policy, .crt-ship/ (gitignored)
|
|
# edit crt-ship.config.ts and the store/ files
|
|
bunx crt-ship check # offline: config, copy limits, data safety, files
|
|
bunx crt-ship play listing --dry
|
|
bunx crt-ship apple iap --dry
|
|
```
|
|
|
|
Or just ask Claude: "ship my game to Google Play" / "set up the in-app purchases on both stores" / "make store
|
|
screenshots in 5 languages", and the matching skill kicks in.
|
|
|
|
## Credentials (never in the repo)
|
|
|
|
Read from environment variables, or from `.crt-ship/credentials.json` in your project (gitignored by `init`):
|
|
|
|
| name | what |
|
|
|---|---|
|
|
| `PLAY_SERVICE_ACCOUNT` | path to the Google Cloud service account JSON key (or the JSON itself) with access to your app in Play Console |
|
|
| `ASC_KEY_ID`, `ASC_ISSUER_ID` | App Store Connect API team key (Users and Access > Integrations) |
|
|
| `ASC_P8` | path to `AuthKey_<id>.p8` (default `~/.appstoreconnect/private_keys/AuthKey_<id>.p8`) |
|
|
| `reviewContact` | (file only) App Review contact name / phone / email |
|
|
|
|
## Commands
|
|
|
|
Every write command takes `--dry`; re-runs are idempotent; output is one timestamped line per step, so long uploads
|
|
can run in the background with a log (`crt-ship play images > .crt-ship/images.log 2>&1 &`).
|
|
|
|
| command | API / local | what |
|
|
|---|---|---|
|
|
| `init` | local | copy the templates, gitignore `.crt-ship/` |
|
|
| `check` | local | validate config, copy limits, data safety, products, files |
|
|
| `play products` | API | one-time products via `monetization.onetimeproducts`: regional prices from `convertRegionPrices` + your overrides, activate |
|
|
| `play listing` | API | app details + title / short / full description per language |
|
|
| `play images` | API | icon, feature graphic, phone / 7" / 10" screenshots, one edit per language |
|
|
| `play data-safety` | API | Data safety form (CSV import); `--csv` to write the file |
|
|
| `play release <aab>` | API | upload + tracks (`--internal completed --production draft`), release notes from the listing |
|
|
| `play status` | API | tracks, listings, products |
|
|
| `apple bundle` | API | register the bundle id, find the app record |
|
|
| `apple iap` | API | IAPs, localizations, price schedules (USA base + overrides), availability |
|
|
| `apple iap-review` | API | IAP review screenshots + states |
|
|
| `apple listing --version x.y.z [--build N]` | API | version, build, name / subtitle / description / keywords / promo per locale |
|
|
| `apple screenshots` | API | 6.9" + 6.5" screenshots per locale (MD5-idempotent) |
|
|
| `apple appinfo` | API | categories, age rating, content rights, Free, all territories |
|
|
| `apple review-details` | API | App Review contact + notes |
|
|
| `apple status` | API | versions, builds, IAPs, review submissions (`--cancel-submission <id>`) |
|
|
| `icons` | local | App Store 1024 (no alpha), Play 512, web, Capacitor sources, Android legacy launcher icons |
|
|
| `shots capture` | local | raw frames from your running game |
|
|
| `shots fonts` | local | font subsets for your copy (Noto for CJK / Arabic / Cyrillic / Devanagari ...) |
|
|
| `shots render` | local | every store size, every language, contact sheet |
|
|
| `shots jpeg` | local | JPEG q92 copies for Play (about 4x faster uploads) |
|
|
|
|
## What is API and what stays manual
|
|
|
|
Scripted: almost everything listed above. Still clicks (the skills give the exact path):
|
|
|
|
- **Google Play**: creating the app, API access + service account invite, the first upload in some cases, App content
|
|
declarations (privacy policy, ads, IARC content rating, target audience, advertising ID, sign-in details,
|
|
government / financial / health), countries for production, and **Send for review** on a draft app's first release.
|
|
- **App Store**: creating the app record, App Privacy labels (+ Publish), TestFlight group setup, adding first IAPs to
|
|
the submission ("Add for Review" on the IAP page), and **Submit for Review**.
|
|
|
|
Public or irreversible steps are left to you on purpose. The skills tell Claude to ask before any of them.
|
|
|
|
## Skills
|
|
|
|
| skill | for |
|
|
|---|---|
|
|
| `play-first-release` | Google Play from zero to "In review" |
|
|
| `appstore-first-release` | App Store from API key to "Waiting for review", incl. xcodebuild with the API key |
|
|
| `store-iap-setup` | in-app products on both stores, prices, testers, the first-IAP-with-version rule |
|
|
| `store-screenshots` | capture, copy, fonts, render, upload |
|
|
| `app-icons` | one artwork to every icon, adaptive / legacy launcher pitfalls |
|
|
| `store-declarations` | Data safety, App Privacy, IARC, target audience, ads / advertising ID |
|
|
| `privacy-policy` | one studio-wide policy page with a per-game services table |
|
|
| `ads-levelplay-checks` | LevelPlay / Unity Ads ids, adapters, app-ads.txt, SKAdNetwork, no-fill |
|
|
|
|
## Develop
|
|
|
|
```sh
|
|
bun install
|
|
bun test # pure parts: config validation, copy parsing, CSV, prices, fonts, args
|
|
bun run typecheck
|
|
```
|
|
|
|
## Credits
|
|
|
|
Built with Bun and plain `fetch` against the Google Play Developer API v3 and the App Store Connect API. Screenshot
|
|
fonts come from Google Fonts at render time (Noto, Lilita One, Montserrat; SIL Open Font License 1.1). Not affiliated
|
|
with Google or Apple.
|
|
|
|
## License
|
|
|
|
MIT, see [LICENSE](LICENSE). Copyright (c) 2026 CRTkafa.
|