From 0ca1d464e4a49fa413f645433426c43ffe248eda Mon Sep 17 00:00:00 2001 From: CRT Date: Sat, 10 Oct 2026 12:35:26 +0000 Subject: [PATCH] Rename to storebound (plugin, CLI, config file, credentials folder, repo) --- .claude-plugin/marketplace.json | 4 +-- .claude-plugin/plugin.json | 8 ++--- .gitignore | 2 +- CHANGELOG.md | 4 +-- README.md | 30 +++++++++---------- bin/crt-ship | 4 --- bin/storebound | 4 +++ cli/apple/appinfo.ts | 4 +-- cli/apple/bundle.ts | 2 +- cli/apple/iap-review.ts | 2 +- cli/apple/iap.ts | 2 +- cli/apple/listing.ts | 2 +- cli/apple/review-details.ts | 8 ++--- cli/apple/screenshots.ts | 2 +- cli/apple/status.ts | 4 +-- cli/check.ts | 6 ++-- cli/icons.ts | 6 ++-- cli/index.ts | 10 +++---- cli/init.ts | 18 +++++------ cli/lib/config.ts | 8 ++--- cli/lib/credentials.ts | 12 ++++---- cli/lib/ctx.ts | 2 +- cli/lib/log.ts | 2 +- cli/play/data-safety.ts | 4 +-- cli/play/images.ts | 6 ++-- cli/play/listing.ts | 2 +- cli/play/products.ts | 2 +- cli/play/release.ts | 4 +-- cli/play/status.ts | 2 +- cli/shots/browser.ts | 2 +- cli/shots/capture.ts | 2 +- cli/shots/feature.html | 2 +- cli/shots/fonts.ts | 8 ++--- cli/shots/jpeg.ts | 2 +- cli/shots/render.ts | 6 ++-- cli/shots/template.html | 2 +- package.json | 6 ++-- skills/app-icons/SKILL.md | 14 ++++----- skills/appstore-first-release/SKILL.md | 30 +++++++++---------- skills/play-first-release/SKILL.md | 28 ++++++++--------- skills/privacy-policy/SKILL.md | 4 +-- skills/store-declarations/SKILL.md | 10 +++---- skills/store-iap-setup/SKILL.md | 14 ++++----- skills/store-screenshots/SKILL.md | 14 ++++----- templates/app-privacy.md | 4 +-- templates/appstore.md | 4 +-- templates/declarations.md | 6 ++-- templates/listing.md | 2 +- templates/privacy-policy.html | 2 +- ...rt-ship.config.ts => storebound.config.ts} | 8 ++--- tests/pure.test.ts | 4 +-- tsconfig.json | 2 +- 52 files changed, 171 insertions(+), 171 deletions(-) delete mode 100755 bin/crt-ship create mode 100755 bin/storebound rename templates/{crt-ship.config.ts => storebound.config.ts} (94%) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 614e1a84..02066610 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -4,9 +4,9 @@ "owner": { "name": "CRTkafa" }, "plugins": [ { - "name": "crt-ship", + "name": "storebound", "source": ".", - "description": "Ship mobile games to Google Play and the App Store: skills for every store step plus the crt-ship CLI.", + "description": "Ship mobile games to Google Play and the App Store: skills for every store step plus the storebound CLI.", "version": "0.1.0", "category": "development", "tags": ["mobile", "google-play", "app-store", "release"] diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 4552651a..21c26d10 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,10 +1,10 @@ { - "name": "crt-ship", + "name": "storebound", "version": "0.1.0", - "description": "Ship mobile games to Google Play and the App Store: store listings, in-app products, data safety, screenshots, icons and first-release checklists, as skills plus a Bun CLI (crt-ship). CRTkafa's own toolchain, open-sourced.", + "description": "Ship mobile games to Google Play and the App Store: store listings, in-app products, data safety, screenshots, icons and first-release checklists, as skills plus a Bun CLI (storebound). CRTkafa's own toolchain, open-sourced.", "author": { "name": "CRTkafa" }, - "homepage": "https://git.crt.fyi/CRT/crt-ship", - "repository": "https://git.crt.fyi/CRT/crt-ship.git", + "homepage": "https://git.crt.fyi/CRT/storebound", + "repository": "https://git.crt.fyi/CRT/storebound.git", "license": "MIT", "keywords": ["google-play", "app-store", "app-store-connect", "mobile-games", "iap", "screenshots", "app-icons", "release"] } diff --git a/.gitignore b/.gitignore index f89b1015..29b44e3c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules/ -.crt-ship/ +.storebound/ *.p8 *service-account*.json *.keystore diff --git a/CHANGELOG.md b/CHANGELOG.md index eeeb1843..c38f6a5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,10 @@ First public cut, extracted from the scripts I used to ship my own game. -- `crt-ship` CLI: `init`, `check`; Play `products`, `listing`, `images`, `data-safety`, `release`, `status`; +- `storebound` CLI: `init`, `check`; Play `products`, `listing`, `images`, `data-safety`, `release`, `status`; App Store `bundle`, `iap`, `iap-review`, `listing`, `screenshots`, `appinfo`, `review-details`, `status` (incl. canceling a review submission); `icons`; `shots capture | fonts | render | jpeg`. -- Per-project `crt-ship.config.ts`; credentials only from env or `.crt-ship/credentials.json`. +- Per-project `storebound.config.ts`; credentials only from env or `.storebound/credentials.json`. - Claude Code plugin + marketplace with 8 skills: play-first-release, appstore-first-release, store-iap-setup, store-screenshots, app-icons, store-declarations, privacy-policy, ads-levelplay-checks. - Templates: config, Play + App Store listing copy, screenshot copy (5 languages incl. Arabic + Japanese), Data diff --git a/README.md b/README.md index f3f162dd..924bd7b9 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# crt-ship +# storebound 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, @@ -12,7 +12,7 @@ plus Claude Code skills that walk you (or Claude) through the parts that are sti ## What is in the box -- **`crt-ship` CLI** (Bun + TypeScript, zero runtime dependencies): store listings, in-app products with regional +- **`storebound` 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 @@ -22,18 +22,18 @@ plus Claude Code skills that walk you (or Claude) through the parts that are sti ## Install -As a Claude Code plugin (skills + the `crt-ship` command on Claude's PATH): +As a Claude Code plugin (skills + the `storebound` command on Claude's PATH): ``` -/plugin marketplace add https://git.crt.fyi/CRT/crt-ship.git -/plugin install crt-ship@crtkafa +/plugin marketplace add https://git.crt.fyi/CRT/storebound.git +/plugin install storebound@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 +bun add -d git+https://git.crt.fyi/CRT/storebound.git +bunx storebound help ``` Extra tools some commands use: `ffmpeg` (icons, screenshots), `cwebp` (optional), `playwright` in your project for @@ -42,11 +42,11 @@ screenshots (`bun add -d playwright`; it uses Playwright's Chromium or your inst ## 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 +bunx storebound init # storebound.config.ts, store/*.md, store/shots/copy.json, privacy policy, .storebound/ (gitignored) +# edit storebound.config.ts and the store/ files +bunx storebound check # offline: config, copy limits, data safety, files +bunx storebound play listing --dry +bunx storebound apple iap --dry ``` Or just ask Claude: "ship my game to Google Play" / "set up the in-app purchases on both stores" / "make store @@ -54,7 +54,7 @@ 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`): +Read from environment variables, or from `.storebound/credentials.json` in your project (gitignored by `init`): | name | what | |---|---| @@ -66,11 +66,11 @@ Read from environment variables, or from `.crt-ship/credentials.json` in your pr ## 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 &`). +can run in the background with a log (`storebound play images > .storebound/images.log 2>&1 &`). | command | API / local | what | |---|---|---| -| `init` | local | copy the templates, gitignore `.crt-ship/` | +| `init` | local | copy the templates, gitignore `.storebound/` | | `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 | diff --git a/bin/crt-ship b/bin/crt-ship deleted file mode 100755 index 701e04db..00000000 --- a/bin/crt-ship +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -# crt-ship launcher. On PATH while the Claude Code plugin is enabled; or symlink it anywhere. -here=$(cd "$(dirname "$0")" && pwd -P) -exec bun "$here/../cli/index.ts" "$@" diff --git a/bin/storebound b/bin/storebound new file mode 100755 index 00000000..76275d16 --- /dev/null +++ b/bin/storebound @@ -0,0 +1,4 @@ +#!/bin/sh +# storebound launcher. On PATH while the Claude Code plugin is enabled; or symlink it anywhere. +here=$(cd "$(dirname "$0")" && pwd -P) +exec bun "$here/../cli/index.ts" "$@" diff --git a/cli/apple/appinfo.ts b/cli/apple/appinfo.ts index fd36433a..440a4270 100644 --- a/cli/apple/appinfo.ts +++ b/cli/apple/appinfo.ts @@ -1,5 +1,5 @@ -// App-level App Store settings (idempotent), from apple.info in crt-ship.config.ts: -// crt-ship apple appinfo [--dry] +// App-level App Store settings (idempotent), from apple.info in storebound.config.ts: +// storebound apple appinfo [--dry] // - categories (primary + up to two game subcategories, secondary) // - age rating declaration: every content question NONE / false unless overridden in apple.info.ageRating // - content rights declaration diff --git a/cli/apple/bundle.ts b/cli/apple/bundle.ts index 461b0161..9acbc6b1 100644 --- a/cli/apple/bundle.ts +++ b/cli/apple/bundle.ts @@ -1,5 +1,5 @@ // Register the bundle id (Certificates, Identifiers & Profiles) through the API. Idempotent. -// crt-ship apple bundle [--name "My Game"] [--dry] +// storebound apple bundle [--name "My Game"] [--dry] // The App Store Connect app record itself can NOT be created through the API: do that in the web UI afterwards // (Apps > + > New App, pick this bundle id), see the appstore-first-release skill. import type { Ctx } from '../lib/ctx'; diff --git a/cli/apple/iap-review.ts b/cli/apple/iap-review.ts index 3f26bb01..bf747ddb 100644 --- a/cli/apple/iap-review.ts +++ b/cli/apple/iap-review.ts @@ -1,6 +1,6 @@ // Upload the App Review screenshot of every in-app purchase (idempotent: a screenshot whose MD5 matches is kept) and // print each product's state. Nothing is submitted. -// crt-ship apple iap-review [--dry] +// storebound apple iap-review [--dry] // Screenshot per product: products[].reviewScreenshot, else apple.reviewShots/.(png|jpg). // Size: a real device screenshot size (e.g. 1290 x 2796); other sizes fail with IMAGE_INCORRECT_DIMENSIONS. import { existsSync, readFileSync } from 'node:fs'; diff --git a/cli/apple/iap.ts b/cli/apple/iap.ts index 1e9fe5dc..1bfdb135 100644 --- a/cli/apple/iap.ts +++ b/cli/apple/iap.ts @@ -1,7 +1,7 @@ // In-app purchases on App Store Connect: create missing products, localizations, price schedule (USA base + your // overrides; Apple equalizes every other storefront) and availability (every territory + new ones). Idempotent: // existing products and schedules are left alone (prices of an existing schedule are not changed; do that in the UI). -// crt-ship apple iap [--dry] [--only id1,id2] +// storebound apple iap [--dry] [--only id1,id2] // Then `apple iap-review` for the review screenshots. First IAPs can only be submitted together with an app version, // from the IAP page in the web UI (see the store-iap-setup skill). import type { Ctx } from '../lib/ctx'; diff --git a/cli/apple/listing.ts b/cli/apple/listing.ts index 528b49e1..86fa1a70 100644 --- a/cli/apple/listing.ts +++ b/cli/apple/listing.ts @@ -1,5 +1,5 @@ // App Store version + listing text (idempotent; re-run after editing the App Store listing file). -// crt-ship apple listing --version 1.0.0 [--build 3] [--dry] +// storebound apple listing --version 1.0.0 [--build 3] [--dry] // - the editable iOS version: versionString, copyright, release type MANUAL; with --build that processed build is attached // - appInfoLocalizations: name, subtitle, privacy policy URL per locale // - appStoreVersionLocalizations: description, keywords, promotional text, what's new (not on a first version), diff --git a/cli/apple/review-details.ts b/cli/apple/review-details.ts index 3ff087af..d669b48a 100644 --- a/cli/apple/review-details.ts +++ b/cli/apple/review-details.ts @@ -1,8 +1,8 @@ // App Review information on the editable version: contact, demo account (none), notes. Idempotent. -// crt-ship apple review-details [--contact-from ] [--dry] +// storebound apple review-details [--contact-from ] [--dry] // The contact (name, phone, email) is personal data, so it is never in the config: it comes from -// .crt-ship/credentials.json "reviewContact", or is copied from another app of the same team with --contact-from. -// Notes: apple.info.reviewNotes in crt-ship.config.ts. +// .storebound/credentials.json "reviewContact", or is copied from another app of the same team with --contact-from. +// Notes: apple.info.reviewNotes in storebound.config.ts. import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; import { reviewContact } from '../lib/credentials'; @@ -27,7 +27,7 @@ export async function run(ctx: Ctx): Promise { const rc = reviewContact(root); if (rc) contact = { contactFirstName: rc.firstName, contactLastName: rc.lastName, contactPhone: rc.phone, contactEmail: rc.email }; } - if (!contact) throw new Error('no review contact: add "reviewContact" to .crt-ship/credentials.json or pass --contact-from '); + if (!contact) throw new Error('no review contact: add "reviewContact" to .storebound/credentials.json or pass --contact-from '); const attributes = { ...contact, demoAccountRequired: false, demoAccountName: null, demoAccountPassword: null, notes: config.apple?.info?.reviewNotes ?? '' }; if (ctx.args.has('dry')) { log('apple', `would set review details (contact ${from ? 'copied from ' + from : 'from credentials'}, notes ${attributes.notes.length} chars)`); return; } diff --git a/cli/apple/screenshots.ts b/cli/apple/screenshots.ts index 4d044a0a..8f4fd48f 100644 --- a/cli/apple/screenshots.ts +++ b/cli/apple/screenshots.ts @@ -1,6 +1,6 @@ // Store screenshots of every locale on the editable App Store version (idempotent: a set whose files already match // by MD5 and order is left alone, otherwise it is emptied and re-uploaded). -// crt-ship apple screenshots [--src store/renders] [--only en-US,tr] [--jobs 4] +// storebound apple screenshots [--src store/renders] [--only en-US,tr] [--jobs 4] // Source per language: //ios69/NN.png (6.9", 1320 x 2868 -> APP_IPHONE_67) and // ios65/NN.png (6.5", 1284 x 2778 -> APP_IPHONE_65). Up to 10 per set. Apple processes uploads asynchronously; failed // ones are reported at the end. Long: run in the background with a log file. diff --git a/cli/apple/status.ts b/cli/apple/status.ts index 7825766e..a9758f35 100644 --- a/cli/apple/status.ts +++ b/cli/apple/status.ts @@ -1,7 +1,7 @@ // Read-only overview: app record, versions + attached build, recent builds, in-app purchases, review submissions. -// crt-ship apple status [--json] +// storebound apple status [--json] // And the one write it offers: cancel a review submission (to re-add first IAPs to it from the web UI): -// crt-ship apple status --cancel-submission [--yes] +// storebound apple status --cancel-submission [--yes] import type { Ctx } from '../lib/ctx'; import { confirm, need } from '../lib/ctx'; import { log } from '../lib/log'; diff --git a/cli/check.ts b/cli/check.ts index e35b9298..796c3424 100644 --- a/cli/check.ts +++ b/cli/check.ts @@ -1,6 +1,6 @@ // Offline sanity check of everything the store commands read: config, both listing files, the screenshot copy, data // safety answers, product texts vs store limits, and the files the config points at. No network, no credentials. -// crt-ship check +// storebound check import { existsSync, readFileSync } from 'node:fs'; import { playCodes } from './lib/config'; import { len, parseAppStoreListing, parsePlayListing } from './lib/copy'; @@ -44,8 +44,8 @@ export async function run(ctx: Ctx): Promise { const files = [config.icons?.composite, config.icons?.foreground, config.icons?.background, config.shots?.logo, ...(config.products ?? []).map(p => p.reviewScreenshot)].filter((f): f is string => !!f); for (const f of new Set(files)) if (!existsSync(resolve(f))) problems.push(`missing file: ${f}`); - if (existsSync(resolve('.gitignore')) && !/^\/?\.crt-ship\/?$/m.test(readFileSync(resolve('.gitignore'), 'utf8'))) - problems.push('.gitignore does not ignore .crt-ship/ (credentials live there)'); + if (existsSync(resolve('.gitignore')) && !/^\/?\.storebound\/?$/m.test(readFileSync(resolve('.gitignore'), 'utf8'))) + problems.push('.gitignore does not ignore .storebound/ (credentials live there)'); if (problems.length) { for (const p of problems) console.error(` - ${p}`); throw new Error(`${problems.length} problems`); } log('check', 'all good'); diff --git a/cli/icons.ts b/cli/icons.ts index 1ef7b32f..4d66b3dc 100644 --- a/cli/icons.ts +++ b/cli/icons.ts @@ -1,6 +1,6 @@ // One artwork -> every icon the stores, the native shells and the web build need. Needs ffmpeg (cwebp optional). -// crt-ship icons [--dry] -// In (icons in crt-ship.config.ts): composite (1024 opaque full icon), foreground (1024 RGBA subject on transparent) +// storebound icons [--dry] +// In (icons in storebound.config.ts): composite (1024 opaque full icon), foreground (1024 RGBA subject on transparent) // and background (1024 opaque) for the adaptive / maskable variants. // Out: // /app-store-1024.png App Store icon, rgb24 (Apple rejects an alpha channel) @@ -50,7 +50,7 @@ export async function run(ctx: Ctx): Promise { const fg = ic.foreground ? resolve(ic.foreground) : ''; const bg = ic.background ? resolve(ic.background) : ''; const adaptiveK = ic.adaptiveScale ?? ADAPTIVE_FG; - const tmp = join(root, '.crt-ship', 'tmp-icons'); + const tmp = join(root, '.storebound', 'tmp-icons'); mkdirSync(tmp, { recursive: true }); const opaque = (size: number, out: string, palette = false): void => { diff --git a/cli/index.ts b/cli/index.ts index 30b1ed9d..3a185814 100755 --- a/cli/index.ts +++ b/cli/index.ts @@ -1,6 +1,6 @@ #!/usr/bin/env bun -// crt-ship: ship a mobile game to Google Play and the App Store from the terminal. -// Run `crt-ship help` for the command list. Config: crt-ship.config.ts; credentials: env or .crt-ship/. +// storebound: ship a mobile game to Google Play and the App Store from the terminal. +// Run `storebound help` for the command list. Config: storebound.config.ts; credentials: env or .storebound/. import { parseArgs } from './lib/args'; import { loadConfig } from './lib/config'; import type { Ctx } from './lib/ctx'; @@ -30,15 +30,15 @@ const COMMANDS: Record Promise, string]> = { }; function help(): void { - console.log(`crt-ship · ship mobile games to Google Play and the App Store + console.log(`storebound · ship mobile games to Google Play and the App Store -usage: crt-ship [options] +usage: storebound [options] init copy the templates (config, listing, copy, privacy policy) into this project ${Object.entries(COMMANDS).map(([k, [, d]]) => ` ${k.padEnd(25)} ${d}`).join('\n')} common options: --config --dry (no writes) --only --yes (skip confirmations) -credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8 (env or .crt-ship/credentials.json) +credentials: PLAY_SERVICE_ACCOUNT, ASC_KEY_ID, ASC_ISSUER_ID, ASC_P8 (env or .storebound/credentials.json) docs: README.md and the skills/ folder of the toolchain`); } diff --git a/cli/init.ts b/cli/init.ts index e108effc..55e1c154 100644 --- a/cli/init.ts +++ b/cli/init.ts @@ -1,5 +1,5 @@ -// Copies the templates into the current project without overwriting anything, and makes sure .crt-ship/ is ignored. -// crt-ship init [--dir .] +// Copies the templates into the current project without overwriting anything, and makes sure .storebound/ is ignored. +// storebound init [--dir .] import { appendFileSync, copyFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs'; import { dirname, join, resolve } from 'node:path'; import type { Args } from './lib/args'; @@ -7,14 +7,14 @@ import { log } from './lib/log'; const T = join(import.meta.dir, '..', 'templates'); const FILES: [string, string][] = [ - ['crt-ship.config.ts', 'crt-ship.config.ts'], + ['storebound.config.ts', 'storebound.config.ts'], ['listing.md', 'store/listing.md'], ['appstore.md', 'store/appstore.md'], ['shots-copy.json', 'store/shots/copy.json'], ['app-privacy.md', 'store/app-privacy.md'], ['declarations.md', 'store/declarations.md'], ['privacy-policy.html', 'store/privacy-policy.html'], - ['credentials.example.json', '.crt-ship/credentials.json'], + ['credentials.example.json', '.storebound/credentials.json'], ]; export async function run(args: Args): Promise { @@ -28,10 +28,10 @@ export async function run(args: Args): Promise { } const gi = join(root, '.gitignore'); const cur = existsSync(gi) ? readFileSync(gi, 'utf8') : ''; - if (!/^\/?\.crt-ship\/?$/m.test(cur)) { - if (cur) appendFileSync(gi, `${cur.endsWith('\n') ? '' : '\n'}# crt-ship: credentials, fonts, temp files\n.crt-ship/\n`); - else writeFileSync(gi, '# crt-ship: credentials, fonts, temp files\n.crt-ship/\n'); - log('init', '.gitignore: added .crt-ship/'); + if (!/^\/?\.storebound\/?$/m.test(cur)) { + if (cur) appendFileSync(gi, `${cur.endsWith('\n') ? '' : '\n'}# storebound: credentials, fonts, temp files\n.storebound/\n`); + else writeFileSync(gi, '# storebound: credentials, fonts, temp files\n.storebound/\n'); + log('init', '.gitignore: added .storebound/'); } - log('init', 'next: edit crt-ship.config.ts and .crt-ship/credentials.json, then `crt-ship check`'); + log('init', 'next: edit storebound.config.ts and .storebound/credentials.json, then `storebound check`'); } diff --git a/cli/lib/config.ts b/cli/lib/config.ts index 177bbb1b..14c0e242 100644 --- a/cli/lib/config.ts +++ b/cli/lib/config.ts @@ -1,4 +1,4 @@ -// Per-project config (crt-ship.config.ts at the project root). Everything game-specific lives here; credentials never +// Per-project config (storebound.config.ts at the project root). Everything game-specific lives here; credentials never // do (see credentials.ts). The file default-exports a plain object; `import type { ShipConfig }` is optional. import { existsSync } from 'node:fs'; import { dirname, isAbsolute, join, resolve } from 'node:path'; @@ -227,9 +227,9 @@ export function validateConfig(c: unknown): string[] { export interface Loaded { config: ShipConfig; root: string; path: string; resolve(p: string): string } -const NAMES = ['crt-ship.config.ts', 'crt-ship.config.js', 'crt-ship.config.json']; +const NAMES = ['storebound.config.ts', 'storebound.config.js', 'storebound.config.json']; -/** Finds crt-ship.config.* from `start` upwards (or uses `explicit`), imports and validates it. */ +/** Finds storebound.config.* from `start` upwards (or uses `explicit`), imports and validates it. */ export async function loadConfig(explicit?: string, start = process.cwd()): Promise { let path = explicit ? resolve(explicit) : ''; if (!path) { @@ -239,7 +239,7 @@ export async function loadConfig(explicit?: string, start = process.cwd()): Prom if (dirname(d) === d) break; } } - if (!path || !existsSync(path)) throw new Error('no crt-ship.config.ts found (run `crt-ship init` or pass --config)'); + if (!path || !existsSync(path)) throw new Error('no storebound.config.ts found (run `storebound init` or pass --config)'); const mod = await import(path); const config = (mod.default ?? mod) as ShipConfig; const errors = validateConfig(config); diff --git a/cli/lib/credentials.ts b/cli/lib/credentials.ts index 069c47b2..b70ae0c7 100644 --- a/cli/lib/credentials.ts +++ b/cli/lib/credentials.ts @@ -1,7 +1,7 @@ -// Credentials never live in crt-ship.config.ts or in git. Sources, first hit wins: +// Credentials never live in storebound.config.ts or in git. Sources, first hit wins: // 1. environment: PLAY_SERVICE_ACCOUNT (path to the JSON key, or the JSON itself), ASC_KEY_ID, ASC_ISSUER_ID, // ASC_P8 (path to AuthKey_.p8, or the PEM itself) -// 2. /.crt-ship/credentials.json (gitignored), same names: +// 2. /.storebound/credentials.json (gitignored), same names: // { "PLAY_SERVICE_ACCOUNT": "...", "ASC_KEY_ID": "...", "ASC_ISSUER_ID": "...", "ASC_P8": "...", // "reviewContact": { "firstName": "", "lastName": "", "phone": "", "email": "" } } // 3. ASC_P8 only: ~/.appstoreconnect/private_keys/AuthKey_.p8 (where Xcode / altool keep it) @@ -16,7 +16,7 @@ export interface ReviewContact { firstName: string; lastName: string; phone: str type Store = Record; function fileStore(root: string): Store { - const p = join(root, '.crt-ship', 'credentials.json'); + const p = join(root, '.storebound', 'credentials.json'); if (!existsSync(p)) return {}; try { return JSON.parse(readFileSync(p, 'utf8')) as Store; } catch (e) { throw new Error(`${p}: ${(e as Error).message}`); } } @@ -40,20 +40,20 @@ export function parseServiceAccount(text: string): ServiceAccount { export function playServiceAccount(root: string): ServiceAccount { const v = value(root, 'PLAY_SERVICE_ACCOUNT'); - if (!v) throw new Error('PLAY_SERVICE_ACCOUNT is not set (env, or .crt-ship/credentials.json): path to the service account JSON key'); + if (!v) throw new Error('PLAY_SERVICE_ACCOUNT is not set (env, or .storebound/credentials.json): path to the service account JSON key'); return parseServiceAccount(inline(v, /^\s*\{/)); } export function ascKey(root: string): AscKey { const keyId = value(root, 'ASC_KEY_ID'); const issuerId = value(root, 'ASC_ISSUER_ID'); - if (!keyId || !issuerId) throw new Error('ASC_KEY_ID and ASC_ISSUER_ID are not set (env, or .crt-ship/credentials.json)'); + if (!keyId || !issuerId) throw new Error('ASC_KEY_ID and ASC_ISSUER_ID are not set (env, or .storebound/credentials.json)'); const p8 = value(root, 'ASC_P8') ?? join(homedir(), '.appstoreconnect/private_keys', `AuthKey_${keyId}.p8`); if (!/BEGIN PRIVATE KEY/.test(p8) && !existsSync(p8.replace(/^~(?=\/)/, homedir()))) throw new Error(`App Store Connect key not found: ${p8} (set ASC_P8)`); return { keyId, issuerId, pem: inline(p8, /BEGIN PRIVATE KEY/) }; } -/** App Review contact from .crt-ship/credentials.json (personal data, so never in the config). */ +/** App Review contact from .storebound/credentials.json (personal data, so never in the config). */ export function reviewContact(root: string): ReviewContact | null { const c = fileStore(root).reviewContact as Partial | undefined; if (!c?.email) return null; diff --git a/cli/lib/ctx.ts b/cli/lib/ctx.ts index 956aa599..79f97f5c 100644 --- a/cli/lib/ctx.ts +++ b/cli/lib/ctx.ts @@ -5,7 +5,7 @@ import { playCodes } from './config'; export interface Ctx { loaded: Loaded; args: Args } export function need(v: T | undefined, what: string): T { - if (v === undefined || v === null) throw new Error(`crt-ship.config.ts: ${what} is not set`); + if (v === undefined || v === null) throw new Error(`storebound.config.ts: ${what} is not set`); return v; } diff --git a/cli/lib/log.ts b/cli/lib/log.ts index dd923b4f..9d6c090a 100644 --- a/cli/lib/log.ts +++ b/cli/lib/log.ts @@ -1,5 +1,5 @@ // Plain, line-based progress output: easy to follow live and easy to tail when a long upload runs in the background -// (`crt-ship play images > .crt-ship/images.log 2>&1 &`). Every line carries a timestamp and a tag. +// (`storebound play images > .storebound/images.log 2>&1 &`). Every line carries a timestamp and a tag. const t0 = Date.now(); const stamp = (): string => new Date().toISOString().slice(11, 19); const since = (): string => `${((Date.now() - t0) / 1000).toFixed(0)}s`; diff --git a/cli/play/data-safety.ts b/cli/play/data-safety.ts index 4eb7ed1d..8099560a 100644 --- a/cli/play/data-safety.ts +++ b/cli/play/data-safety.ts @@ -1,6 +1,6 @@ // Play Data safety form through applications.dataSafety (CSV import; replaces every earlier answer). -// crt-ship play data-safety [--csv out.csv] [--dry] -// Answers come from `dataSafety` in crt-ship.config.ts. --dry only writes / prints the CSV. +// storebound play data-safety [--csv out.csv] [--dry] +// Answers come from `dataSafety` in storebound.config.ts. --dry only writes / prints the CSV. import { writeFileSync } from 'node:fs'; import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; diff --git a/cli/play/images.ts b/cli/play/images.ts index 05f4e51b..079217ae 100644 --- a/cli/play/images.ts +++ b/cli/play/images.ts @@ -1,9 +1,9 @@ // Play store graphics per language, one edit per language (a Console save in parallel then only costs a retry of that // language, not of the whole upload). -// crt-ship play images [--dry] [--only en-US,de-DE] [--src store/renders] +// storebound play images [--dry] [--only en-US,de-DE] [--src store/renders] // Per Play language, from //: icon (play.icon, 512x512), featureGraphic (feature/1024x500.*), // phoneScreenshots (play/NN.*), sevenInchScreenshots (tab7/NN.*), tenInchScreenshots (tab10/NN.*). A .jpg next to a -// .png wins (JPEG q92 uploads about 4x faster; `crt-ship shots jpeg` makes them). Each image type is cleared +// .png wins (JPEG q92 uploads about 4x faster; `storebound shots jpeg` makes them). Each image type is cleared // before uploading, so re-runs are idempotent. Uploads are slow: run in the background with a log file. import { existsSync, readdirSync, readFileSync } from 'node:fs'; import { join } from 'node:path'; @@ -45,7 +45,7 @@ export async function run(ctx: Ctx): Promise { const set: [string, string[]][] = [['icon', [icon]], ['featureGraphic', feature ? [feature] : []], ...Object.entries(PLAY_IMAGE_DIRS).map(([type, sub]) => [type, numberedImages(join(dir, sub)).slice(0, 8)] as [string, string[]])]; for (const [type, files] of set) { - if (!files.length || !files.every(existsSync)) throw new Error(`${code}: no ${type} in ${dir} (render first: crt-ship shots render)`); + if (!files.length || !files.every(existsSync)) throw new Error(`${code}: no ${type} in ${dir} (render first: storebound shots render)`); if (type.endsWith('Screenshots') && files.length < 2) throw new Error(`${code}: ${type} needs at least 2 images`); } sets.set(code, set); diff --git a/cli/play/listing.ts b/cli/play/listing.ts index 127c997a..1adec5b7 100644 --- a/cli/play/listing.ts +++ b/cli/play/listing.ts @@ -1,5 +1,5 @@ // Play store listing text + app details in one edit. -// crt-ship play listing [--dry] [--only en-US,de-DE] +// storebound play listing [--dry] [--only en-US,de-DE] // App details: default language, contact email, website (must be the domain that serves app-ads.txt). // Listings: title, short and full description of every `` section of the listing file. import { readFileSync } from 'node:fs'; diff --git a/cli/play/products.ts b/cli/play/products.ts index da087b57..e87f5a07 100644 --- a/cli/play/products.ts +++ b/cli/play/products.ts @@ -1,6 +1,6 @@ // In-app products on Google Play through monetization.onetimeproducts (the legacy inappproducts API answers 403 // "Please migrate to the new publishing API" for apps on the new model). -// crt-ship play products [--dry] [--only id1,id2] +// storebound play products [--dry] [--only id1,id2] // Per product: convertRegionPrices (USD base -> every region at local price points, plus regionsVersion), your // explicit overrides on top, PATCH ...?allowMissing=true (create or update), then activate the purchase option // (new options start as DRAFT) with purchaseOptions:batchUpdateStates. Idempotent. diff --git a/cli/play/release.ts b/cli/play/release.ts index 14065f3e..085ee5ef 100644 --- a/cli/play/release.ts +++ b/cli/play/release.ts @@ -1,7 +1,7 @@ // Upload an AAB (or reuse an uploaded versionCode) and put it on one or more tracks in one edit, with the "What's new" // of every listing language as release notes. -// crt-ship play release app-release.aab [--internal completed] [--production draft] [--name "1.0.0 (3)"] [--dry] -// crt-ship play release --version-code 3 --production draft +// storebound play release app-release.aab [--internal completed] [--production draft] [--name "1.0.0 (3)"] [--dry] +// storebound play release --version-code 3 --production draft // Tracks: internal, alpha (closed), beta (open), production; status completed | draft | inProgress | halted. // Without a track flag: internal, completed. A production release that is not a draft asks for confirmation. // Draft app (never published): Play only accepts status "draft" on any track; the first production release is sent diff --git a/cli/play/status.ts b/cli/play/status.ts index eb5fbb53..5525b25d 100644 --- a/cli/play/status.ts +++ b/cli/play/status.ts @@ -1,5 +1,5 @@ // Read-only overview: tracks and releases, listing languages, one-time products and their purchase option states. -// crt-ship play status [--json] +// storebound play status [--json] import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; import { playClient } from './client'; diff --git a/cli/shots/browser.ts b/cli/shots/browser.ts index b686595b..d44ba360 100644 --- a/cli/shots/browser.ts +++ b/cli/shots/browser.ts @@ -1,4 +1,4 @@ -// Playwright is not a dependency of crt-ship: it is resolved from the project (or the crt-ship folder), so a project +// Playwright is not a dependency of storebound: it is resolved from the project (or the storebound folder), so a project // that never renders screenshots never downloads a browser. Launch order: Playwright's own Chromium, then an installed // Google Chrome (channel "chrome"), so `bunx playwright install chromium` is optional when Chrome is there. import { join } from 'node:path'; diff --git a/cli/shots/capture.ts b/cli/shots/capture.ts index 41eaac77..32aa8f02 100644 --- a/cli/shots/capture.ts +++ b/cli/shots/capture.ts @@ -1,5 +1,5 @@ // Raw frames from a running build of your game (headless Chromium, mobile viewport, touch, device scale). -// crt-ship shots capture [--lang en,tr] [--only hero,shop] [--device phone|tablet] +// storebound shots capture [--lang en,tr] [--only hero,shop] [--device phone|tablet] // Each entry of shots.capture.shots: { path, waitFor?: JS expression that turns true, eval?: [JS], delayMs?, device? }. // URL = baseUrl + path + (? or &) + query, with "{lang}" replaced. Frames go to ///.png. // The frame is the screen BELOW the status bar (the template draws one), so the viewport is phone.w x phone.h. diff --git a/cli/shots/feature.html b/cli/shots/feature.html index d2efe670..847fd7f4 100644 --- a/cli/shots/feature.html +++ b/cli/shots/feature.html @@ -4,7 +4,7 @@ + feature.html?lang=. Rendered by `storebound shots render`. Keep text out of it: Play overlays its own UI. -->