Rename to storebound (plugin, CLI, config file, credentials folder, repo)

This commit is contained in:
CRTkafa 2026-10-10 12:35:26 +00:00
parent ecb3dc3dc3
commit 0ca1d464e4
52 changed files with 171 additions and 171 deletions

View file

@ -1,5 +1,5 @@
// Store screenshots + Play feature graphic at exact pixel sizes, from raw game frames and per-language copy.
// crt-ship shots render [--lang en,tr] [--size ios69,play,feature] [--scenes 1,3] [--no-sheet] [--port 8792]
// storebound shots render [--lang en,tr] [--size ios69,play,feature] [--scenes 1,3] [--no-sheet] [--port 8792]
// Out: <shots.out>/<lang>/<size>/NN.png (24-bit RGB: Play rejects alpha / palette PNGs), <lang>/feature/1024x500.png,
// and <lang>/sheet.png (contact sheet of every size, for a quick review). Needs playwright + ffmpeg.
import { existsSync, mkdirSync, readFileSync, rmSync } from 'node:fs';
@ -26,8 +26,8 @@ export async function run(ctx: Ctx): Promise<void> {
const problems = validateCopy(copy, shots, langs);
if (problems.length) throw new Error('shots copy:\n ' + problems.join('\n '));
const framesDir = resolve(shots.frames), outDir = resolve(shots.out);
const fontsDir = join(root, '.crt-ship', 'fonts');
if (!existsSync(join(fontsDir, 'fonts.css'))) warn('shots', 'no .crt-ship/fonts/fonts.css: run `crt-ship shots fonts` first (falling back to system fonts)');
const fontsDir = join(root, '.storebound', 'fonts');
if (!existsSync(join(fontsDir, 'fonts.css'))) warn('shots', 'no .storebound/fonts/fonts.css: run `storebound shots fonts` first (falling back to system fonts)');
const phone = { ...DEFAULT_PHONE, ...shots.phone }, tablet = { ...DEFAULT_TABLET, ...shots.tablet };
const rtl = new Map(config.languages.map(l => [l.id, !!l.rtl] as const));
const fonts = { title: shots.fonts?.title ?? 'Lilita One', body: shots.fonts?.body ?? 'Montserrat' };