diff --git a/cli/shots/capture.ts b/cli/shots/capture.ts index 246cc05d..3360dac5 100644 --- a/cli/shots/capture.ts +++ b/cli/shots/capture.ts @@ -1,4 +1,4 @@ -// Raw frames from a running build of your game, from any engine. +// Raw frames from a running build of your app or game, from any engine. // storebound shots capture [--lang en,tr] [--only hero,shop] [--device phone|tablet] [--source web|ios-sim|android-emu|folder] // [--dry] [--keep-booted] // Frames go to ///.png: the screen BELOW the status bar (the template draws one). @@ -19,7 +19,7 @@ // left running with its status bar restored. --dry prints the simctl / adb commands without running them. // Simulator / emulator screenshots are full screen: cropTop rows (the status bar) are cut so the frame fits the template // (default per device class from the frame dims: phone 162 px of a 6.9" iPhone, tablet 48 px of a 13" iPad with apple.ipad). -// The game needs switches for this: language, scene, fixed seed, no ads / tutorial, freeze. See the store-screenshots skill. +// The app or game needs switches for this: language, scene, fixed seed, no ads / tutorial, freeze. See the store-screenshots skill. import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { homedir } from 'node:os'; import { join } from 'node:path'; diff --git a/cli/shots/devices.ts b/cli/shots/devices.ts index ba6699da..4fe8aa94 100644 --- a/cli/shots/devices.ts +++ b/cli/shots/devices.ts @@ -22,7 +22,7 @@ export function validateCapture(c: ShotsCapture | undefined): string[] { const e: string[] = []; const src = c.source ?? 'web'; if (!SOURCES.includes(src)) return [`shots.capture.source: one of ${SOURCES.join(', ')}`]; - if (src === 'web' && !/^https?:\/\//.test(c.baseUrl ?? '')) e.push('shots.capture.baseUrl: http(s) URL of the running game (source web)'); + if (src === 'web' && !/^https?:\/\//.test(c.baseUrl ?? '')) e.push('shots.capture.baseUrl: http(s) URL of the running app or game (source web)'); if (src === 'ios-sim') { if (!c.ios?.bundleId) e.push('shots.capture.ios.bundleId: bundle id of the app on the simulator (source ios-sim)'); if (!c.ios?.device && !c.ios?.devices?.phone) e.push('shots.capture.ios.device: simulator name or UDID, e.g. "iPhone 17 Pro Max"'); diff --git a/cli/shots/feature-app.html b/cli/shots/feature-app.html new file mode 100644 index 00000000..6fa31a50 --- /dev/null +++ b/cli/shots/feature-app.html @@ -0,0 +1,53 @@ + + + + + + + + + +
+
+
+
+ + + diff --git a/cli/shots/fonts.ts b/cli/shots/fonts.ts index 3bd77b23..727d0d55 100644 --- a/cli/shots/fonts.ts +++ b/cli/shots/fonts.ts @@ -8,7 +8,8 @@ import { join } from 'node:path'; import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; import { done, log } from '../lib/log'; -import { type CopyFile, copyText, scriptFont } from './lib'; +import { shotsStyle } from '../lib/config'; +import { type CopyFile, copyText, scriptFont, shotFonts } from './lib'; const UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36'; const ASCII = Array.from({ length: 95 }, (_, i) => String.fromCharCode(32 + i)).join('') + '·'; @@ -30,7 +31,7 @@ export async function run(ctx: Ctx): Promise { const copy = JSON.parse(readFileSync(resolve(shots.copy), 'utf8')) as CopyFile; const dir = join(root, '.storebound', 'fonts'); mkdirSync(dir, { recursive: true }); - const title = shots.fonts?.title ?? 'Lilita One', body = shots.fonts?.body ?? 'Montserrat'; + const { title, body, titleVariable } = shotFonts(shots, shotsStyle(config)); const latin = new Set(ASCII); const scripts = new Map }>(); @@ -46,7 +47,7 @@ export async function run(ctx: Ctx): Promise { const latinChars = [...latin].sort().join(''); let css = '/* Generated by storebound shots fonts (Google Fonts, SIL Open Font License 1.1), subset to the copy. */\n'; - const jobs: [string, string, string, boolean][] = [[title, 'title', latinChars, false], [body, 'body', latinChars, true], + const jobs: [string, string, string, boolean][] = [[title, 'title', latinChars, titleVariable], [body, 'body', latinChars, true], ...[...scripts.entries()].map(([slug, s]) => [s.family, slug, [...s.chars].sort().join(''), true] as [string, string, string, boolean])]; for (const [family, slug, chars, variable] of jobs) { const bin = await fetchSubset(family, chars, variable); diff --git a/cli/shots/lib.ts b/cli/shots/lib.ts index 21708a29..43e2e9c4 100644 --- a/cli/shots/lib.ts +++ b/cli/shots/lib.ts @@ -27,14 +27,35 @@ export const PALETTES: Record = { candy: { bg: ['#d01f7a', '#ff4f8b', '#ff9f43'], glow: 'rgba(255,220,180,.9)', ink: '#5e0636', shadow: 'rgba(90,0,50,.45)' }, }; -export const palette = (p: string | Palette | undefined): Palette => { - if (!p) return PALETTES.fire!; +/** Calm palettes for the app style: bg = gradient stops, ink = headline colour, glow = accent (eyebrow, second + * headline line), shadow = device shadow. Light ones first, then dark ones (ocean, slate, night-ink). */ +export const APP_PALETTES: Record = { + mist: { bg: ['#eef2ff', '#e6ebff', '#f6f4ff'], glow: '#4f46e5', ink: '#111827', shadow: 'rgba(30,41,90,.22)' }, + paper: { bg: ['#ffffff', '#f7f8fa', '#eef1f5'], glow: '#0f766e', ink: '#0f172a', shadow: 'rgba(15,23,42,.18)' }, + mint: { bg: ['#ecfdf5', '#dcfce7', '#f0fdfa'], glow: '#059669', ink: '#064e3b', shadow: 'rgba(6,78,59,.2)' }, + sand: { bg: ['#fffbeb', '#fef3c7', '#fff7ed'], glow: '#c2410c', ink: '#3b2a0b', shadow: 'rgba(90,50,10,.2)' }, + rose: { bg: ['#fff1f2', '#ffe4e6', '#fdf2f8'], glow: '#e11d48', ink: '#4c0519', shadow: 'rgba(90,10,40,.2)' }, + sky: { bg: ['#f0f9ff', '#e0f2fe', '#eef6ff'], glow: '#0369a1', ink: '#0c2a43', shadow: 'rgba(10,50,90,.2)' }, + ocean: { bg: ['#0b1736', '#14306e', '#1d4ed8'], glow: '#93c5fd', ink: '#ffffff', shadow: 'rgba(0,0,0,.45)' }, + slate: { bg: ['#0f172a', '#1e293b', '#334155'], glow: '#a5b4fc', ink: '#f8fafc', shadow: 'rgba(0,0,0,.5)' }, +}; + +export const palette = (p: string | Palette | undefined, style: 'game' | 'app' = 'game'): Palette => { + const own = style === 'app' ? APP_PALETTES : PALETTES; + if (!p) return style === 'app' ? APP_PALETTES.mist! : PALETTES.fire!; if (typeof p !== 'string') return p; - const hit = PALETTES[p]; - if (!hit) throw new Error(`unknown palette "${p}" (${Object.keys(PALETTES).join(', ')}) or pass { bg, glow, ink, shadow }`); + const hit = own[p] ?? PALETTES[p] ?? APP_PALETTES[p]; + if (!hit) throw new Error(`unknown palette "${p}" (${Object.keys(own).join(', ')}) or pass { bg, glow, ink, shadow }`); return hit; }; +/** Screenshot fonts: shots.fonts, else per style (game: Lilita One titles + Montserrat; app: Inter for both). The app + * title is a variable font (bold headline weights). */ +export function shotFonts(shots: Pick | undefined, style: 'game' | 'app'): { title: string; body: string; titleVariable: boolean } { + const d = style === 'app' ? { title: 'Inter', body: 'Inter' } : { title: 'Lilita One', body: 'Montserrat' }; + return { title: shots?.fonts?.title ?? d.title, body: shots?.fonts?.body ?? d.body, titleVariable: style === 'app' }; +} + export interface SceneCopy { eyebrow?: string; title: [string, string]; sub?: string; badges?: [string, string?][] } export type CopyFile = Record>; diff --git a/cli/shots/record.ts b/cli/shots/record.ts index 9d534fb0..c2846c1b 100644 --- a/cli/shots/record.ts +++ b/cli/shots/record.ts @@ -1,4 +1,4 @@ -// Gameplay clips for app previews / promo videos, from any engine. +// App or gameplay clips for app previews / promo videos, from any engine. // storebound shots record [--lang en,tr] [--only intro,combo] [--source web|ios-sim|android-emu|folder] [--dry] [--keep-booted] // Config: shots.video.record { source?, device?, clips: { : { seconds, path | url | args | extras, waitFor?, delayMs? } } }; // the URL / simulator / emulator settings are the ones of shots.capture. Out: //NN-.mp4 @@ -11,7 +11,7 @@ // android-emu `adb shell screenrecord --time-limit ` on the running emulator / device (never booted, wiped or // rebooted by storebound), pulled and removed from the device. Demo-mode status bar, per-app language. // folder your own clips (screen recorder, engine capture, OBS): lists // or / with durations. -// Make the game playable hands-free for this (an autoplay / attract mode switch) or record yourself playing with +// Make the app or game run hands-free for this (an autoplay / attract mode switch) or record yourself playing with // --source folder. Apple: previews must show footage captured from the app itself. import { existsSync, mkdirSync, readdirSync, rmSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; diff --git a/cli/shots/render.ts b/cli/shots/render.ts index 71c2b548..aa08dd4e 100644 --- a/cli/shots/render.ts +++ b/cli/shots/render.ts @@ -1,10 +1,12 @@ -// Store screenshots + Play feature graphic at exact pixel sizes, from raw game frames and per-language copy. +// Store screenshots + Play feature graphic at exact pixel sizes, from raw app or game frames and per-language copy. // storebound shots render [--lang en,tr] [--size ios69,play,feature] [--scenes 1,3] [--variant b | --variants] // [--no-sheet] [--port 8792] [--dry] // Out: ///NN.png (24-bit RGB: Play rejects alpha / palette PNGs), /feature/1024x500.png, // /sheet.png (contact sheet of every size packed into a grid, for a quick review) and /report.json (text overflow flags // per image, read by `shots check` and `shots gallery`). Variants go to ///... // Default sizes: defaultSizes() (ipad13 only with apple.ipad). Needs playwright + ffmpeg. +// Style: shotsStyle() = shots.style, else app for the app / subscription-app profiles (template-app.html, +// feature-app.html: calm gradient, device frame, headline + subline), else game (template.html, feature.html). import { existsSync, mkdirSync, readFileSync, rmSync } from 'node:fs'; import { join, relative } from 'node:path'; import { spawnSync } from 'node:child_process'; @@ -12,7 +14,8 @@ import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; import { done, log, warn } from '../lib/log'; import { launch } from './browser'; -import { type CopyFile, SIZES, copyText, defaultSizes, frameDims, mergeCopy, palette, renderDir, scriptFont, sheetLayout, validateCopy, variantScenes } from './lib'; +import { shotsStyle } from '../lib/config'; +import { type CopyFile, SIZES, copyText, defaultSizes, frameDims, mergeCopy, palette, renderDir, scriptFont, sheetLayout, shotFonts, validateCopy, variantScenes } from './lib'; import { type RenderReport, mergeReport, readReport } from './report'; const TYPES: Record = { html: 'text/html; charset=utf-8', png: 'image/png', jpg: 'image/jpeg', jpeg: 'image/jpeg', @@ -51,7 +54,9 @@ export async function run(ctx: Ctx): Promise { 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, tablet } = frameDims(config); 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' }; + const style = shotsStyle(config); + const sf = shotFonts(shots, style); + const fonts = { title: sf.title, body: sf.body }; const tpl = import.meta.dir; const server = Bun.serve({ @@ -64,21 +69,21 @@ export async function run(ctx: Ctx): Promise { const { scenes, copy } = jobs.get(url.searchParams.get('v') ?? '') ?? jobs.values().next().value!; const text = copyText(lang, copy[lang]); const script = scriptFont(lang, text); - const base = { phone, tablet, rtl: rtl.get(lang), logo: !!shots.logo, appName: config.app.name, + const base = { style, phone, tablet, rtl: rtl.get(lang), logo: !!shots.logo, appName: config.app.name, fonts: { ...fonts, script: script ? `Store ${script.slug}` : null } }; if (url.searchParams.has('feature')) - return Response.json({ ...base, frame: shots.feature?.frame ?? scenes[0]!.frames[0]!.src, palette: palette(shots.feature?.palette ?? scenes[0]!.palette) }); + return Response.json({ ...base, frame: shots.feature?.frame ?? scenes[0]!.frames[0]!.src, palette: palette(shots.feature?.palette ?? scenes[0]!.palette, style) }); const sid = url.searchParams.get('s') ?? ''; const scene = scenes.find(s => s.id === sid)!; const number = scenes.filter(s => !s.hero).indexOf(scene) + 1; - return Response.json({ ...base, scene, number, palette: palette(scene.palette), copy: copy[lang]?.[sid] ?? {} }); + return Response.json({ ...base, scene, number, palette: palette(scene.palette, style), copy: copy[lang]?.[sid] ?? {} }); } let file = ''; if (p === '/logo' && shots.logo) file = resolve(shots.logo); else if (p.startsWith('/frames/')) file = join(framesDir, p.slice(8)); else if (p.startsWith('/fonts/')) file = join(fontsDir, p.slice(7)); else if (p.startsWith('/out/')) file = join(outDir, p.slice(5)); - else if (/^\/(template|feature)\.html$/.test(p)) file = join(tpl, p.slice(1)); + else if (/^\/(template|feature)(-app)?\.html$/.test(p)) file = join(tpl, p.slice(1)); if (!file || file.includes('..')) return new Response('no', { status: 404 }); const f = Bun.file(file); if (!(await f.exists())) return new Response('missing ' + p, { status: 404 }); @@ -123,14 +128,14 @@ export async function run(ctx: Ctx): Promise { const s = SIZES[size]!; if (s.feature) { const f = join(dir, 'feature', '1024x500.png'); - await shoot(`${base}/feature.html?lang=${encodeURIComponent(lang)}${vq}`, s.w, s.h, f); + await shoot(`${base}/${style === 'app' ? 'feature-app' : 'feature'}.html?lang=${encodeURIComponent(lang)}${vq}`, s.w, s.h, f); rows.push({ size, files: [f] }); continue; } const files: string[] = []; for (const [i, id] of sceneIds.entries()) { const f = join(dir, size, `${String(i + 1).padStart(2, '0')}.png`); - await shoot(`${base}/template.html?s=${encodeURIComponent(id)}&w=${s.w}&h=${s.h}&lang=${encodeURIComponent(lang)}${s.device ? '&device=tablet' : ''}${size === 'tab7' || size === 'tab10' ? '&style=android' : ''}${vq}`, s.w, s.h, f); + await shoot(`${base}/${style === 'app' ? 'template-app' : 'template'}.html?s=${encodeURIComponent(id)}&w=${s.w}&h=${s.h}&lang=${encodeURIComponent(lang)}${s.device ? '&device=tablet' : ''}${size === 'tab7' || size === 'tab10' ? '&style=android' : ''}${vq}`, s.w, s.h, f); files.push(f); } rows.push({ size, files }); diff --git a/cli/shots/template-app.html b/cli/shots/template-app.html new file mode 100644 index 00000000..c5f889ab --- /dev/null +++ b/cli/shots/template-app.html @@ -0,0 +1,182 @@ + + + + + + + + + +
+ + + diff --git a/cli/shots/video.ts b/cli/shots/video.ts index e6ef8bfa..d3b90f16 100644 --- a/cli/shots/video.ts +++ b/cli/shots/video.ts @@ -1,4 +1,4 @@ -// App preview (App Store) and promo video (Play, via YouTube) from gameplay clips, with ffmpeg. +// App preview (App Store) and promo video (Play, via YouTube) from app or gameplay clips, with ffmpeg. // storebound shots video [--lang en,tr] [--target iphone,ipad,youtube] [--seconds 25] [--no-captions] [--dry] // Clips: //*.mp4|mov|webm (or /*.* shared by every language), joined in name order. // Record them with `storebound shots record` (simulator, emulator or web build) or bring your own. @@ -15,7 +15,8 @@ import type { Ctx } from '../lib/ctx'; import { need } from '../lib/ctx'; import { done, log, warn } from '../lib/log'; import { launch } from './browser'; -import { captionsFor, type CopyFile, copyText, palette, renderDir, scriptFont } from './lib'; +import { shotsStyle } from '../lib/config'; +import { captionsFor, type CopyFile, copyText, palette, renderDir, scriptFont, shotFonts } from './lib'; import { ffprobe } from './report'; import { checkVideo, PREVIEW_RULES, VIDEO_TARGETS } from './spec'; @@ -154,9 +155,10 @@ export async function run(ctx: Ctx): Promise { const lang = url.searchParams.get('lang') ?? ''; const texts = captionsFor(copy[lang], sceneIds, 64); const script = scriptFont(lang, copyText(lang, copy[lang])); - const pal = palette(shots.scenes[0]?.palette); - return Response.json({ text: texts[Number(url.searchParams.get('i'))] ?? '', ink: pal.ink, rtl: rtl.get(lang), - fonts: { title: shots.fonts?.title ?? 'Lilita One', script: script ? `Store ${script.slug}` : null } }); + const style = shotsStyle(ctx.loaded.config); + const pal = palette(shots.scenes[0]?.palette, style); + return Response.json({ text: texts[Number(url.searchParams.get('i'))] ?? '', ink: style === 'app' ? '#111827' : pal.ink, rtl: rtl.get(lang), + fonts: { title: shotFonts(shots, style).title, script: script ? `Store ${script.slug}` : null } }); } if (url.pathname === '/caption.html') return new Response(Bun.file(join(import.meta.dir, 'caption.html')), { headers: { 'content-type': 'text/html; charset=utf-8' } }); if (url.pathname.startsWith('/fonts/') && !url.pathname.includes('..')) { diff --git a/docs/img/app-style.jpg b/docs/img/app-style.jpg new file mode 100644 index 00000000..9bdc0e46 Binary files /dev/null and b/docs/img/app-style.jpg differ diff --git a/examples/demo-app/.gitignore b/examples/demo-app/.gitignore new file mode 100644 index 00000000..9bc2766b --- /dev/null +++ b/examples/demo-app/.gitignore @@ -0,0 +1,5 @@ +# Generated by storebound (re-create with the commands in README.md) +.storebound/ +store/shots/frames/ +store/renders/ +store/video/ diff --git a/examples/demo-app/README.md b/examples/demo-app/README.md new file mode 100644 index 00000000..ce715369 --- /dev/null +++ b/examples/demo-app/README.md @@ -0,0 +1,19 @@ +# Tidy Lists (demo app) + +A tiny fictional list app made only to show storebound's **app profile** and the **app screenshot style** (calm +gradient, a clean device frame, headline + subline, no sparkles or badges). One static page with sample data and the +switches a real app needs for store captures: `lang` and `screen` (`lists`, `list`, `share`, `account`). The ids and +URLs in `storebound.config.ts` are placeholders; nothing here talks to a store. + +From this folder (needs Bun, ffmpeg, and Playwright's Chromium or Google Chrome): + +```sh +bun serve.ts & # the app on http://127.0.0.1:8741 +bun ../../cli/index.ts shots capture # raw frames: 2 languages x phone + tablet +bun ../../cli/index.ts shots fonts # Inter subset for the copy +bun ../../cli/index.ts shots render --size ios69,play,feature +bun ../../cli/index.ts shots gallery # store/renders/index.html +bun ../../cli/index.ts check # profile checks: delete-account URL, demo account, terms URL +``` + +Everything it writes (`store/shots/frames`, `store/renders`, `.storebound`) is gitignored. diff --git a/examples/demo-app/serve.ts b/examples/demo-app/serve.ts new file mode 100644 index 00000000..f59c49d2 --- /dev/null +++ b/examples/demo-app/serve.ts @@ -0,0 +1,18 @@ +#!/usr/bin/env bun +// Static server for the demo app's web page. bun examples/demo-app/serve.ts [--port 8741] +const i = process.argv.indexOf('--port'); +const port = Number(i > 0 ? process.argv[i + 1] : process.env.PORT ?? 8741); +const root = new URL('./web/', import.meta.url).pathname; +const TYPES: Record = { html: 'text/html; charset=utf-8', js: 'text/javascript; charset=utf-8', css: 'text/css' }; +const server = Bun.serve({ + port, hostname: '127.0.0.1', + async fetch(req) { + let p = decodeURIComponent(new URL(req.url).pathname); + if (p.endsWith('/')) p += 'index.html'; + if (p.includes('..')) return new Response('no', { status: 400 }); + const f = Bun.file(root + p.slice(1)); + if (!(await f.exists())) return new Response('not found', { status: 404 }); + return new Response(f, { headers: { 'content-type': TYPES[p.split('.').pop() ?? ''] ?? 'application/octet-stream', 'cache-control': 'no-store' } }); + }, +}); +console.log(`Tidy Lists demo on http://127.0.0.1:${server.port}/`); diff --git a/examples/demo-app/store/shots/copy.json b/examples/demo-app/store/shots/copy.json new file mode 100644 index 00000000..500071f8 --- /dev/null +++ b/examples/demo-app/store/shots/copy.json @@ -0,0 +1,14 @@ +{ + "en": { + "lists": { "eyebrow": "Tidy Lists", "title": ["Every list,", "in one calm place"], "sub": "Groceries, trips and projects, synced on all your devices." }, + "check": { "eyebrow": "Check it off", "title": ["See what is left", "at a glance"], "sub": "Tap to tick, swipe to reorder, done items fade away." }, + "share": { "eyebrow": "Shared lists", "title": ["Plan together,", "shop once"], "sub": "Invite family or friends by link and edit the same list live." }, + "account": { "eyebrow": "Your data", "title": ["Private by default,", "yours to export"], "sub": "Export everything or delete your account in Settings, any time." } + }, + "tr": { + "lists": { "eyebrow": "Tidy Lists", "title": ["Tüm listelerin,", "tek sakin bir yerde"], "sub": "Market, gezi ve projeler; tüm cihazlarında eşitlenir." }, + "check": { "eyebrow": "İşaretle", "title": ["Kalanları", "bir bakışta gör"], "sub": "Dokun işaretle, sürükle sırala, bitenler sessizce solar." }, + "share": { "eyebrow": "Paylaşılan listeler", "title": ["Birlikte planla,", "bir kez alışveriş yap"], "sub": "Aileni ya da arkadaşlarını bağlantıyla davet et, aynı listeyi canlı düzenleyin." }, + "account": { "eyebrow": "Verilerin", "title": ["Varsayılan olarak gizli,", "dışa aktarması senin"], "sub": "Her şeyi dışa aktar ya da hesabını Ayarlar'dan istediğin an sil." } + } +} diff --git a/examples/demo-app/storebound.config.ts b/examples/demo-app/storebound.config.ts new file mode 100644 index 00000000..0cd27f1d --- /dev/null +++ b/examples/demo-app/storebound.config.ts @@ -0,0 +1,51 @@ +// storebound config of the demo app "Tidy Lists" (fictional, made for this repo) to show the app profile and the app +// screenshot style. Placeholder ids and URLs only: nothing here points at a real store record. See README.md. +import type { ShipConfig } from '../../cli/lib/config'; + +const config: ShipConfig = { + app: { + name: 'Tidy Lists', + profile: 'app', + copyright: '2026 Example Studio', + privacyPolicyUrl: 'https://example.com/privacy', + termsUrl: 'https://example.com/terms', + supportUrl: 'https://example.com/support', + website: 'https://example.com', + contactEmail: 'support@example.com', + }, + accounts: { enabled: true, deletionUrl: 'https://example.com/delete-account', inApp: 'Settings > Account > Delete account' }, + reviewAccess: { signInRequired: true, instructions: 'Sign in with the demo account; the Groceries list is shared with a second demo user.' }, + languages: [ + { id: 'en', play: 'en-US', apple: 'en-US' }, + { id: 'tr', play: 'tr-TR', apple: 'tr' }, + ], + play: { packageName: 'com.example.tidylists' }, + apple: { bundleId: 'com.example.tidylists' }, + renders: 'store/renders', + shots: { + style: 'app', + copy: 'store/shots/copy.json', + frames: 'store/shots/frames', + out: 'store/renders', + scenes: [ + { id: 'lists', palette: 'mist', frames: [{ src: 'lists.png' }] }, + { id: 'check', palette: 'mint', frames: [{ src: 'list.png' }] }, + { id: 'share', palette: 'sky', frames: [{ src: 'share.png' }] }, + { id: 'account', palette: 'slate', frames: [{ src: 'account.png' }] }, + ], + feature: { frame: 'lists.png', palette: 'mist' }, + capture: { + source: 'web', + baseUrl: 'http://127.0.0.1:8741', + query: 'lang={lang}', + shots: { + lists: { path: '/?screen=lists', waitFor: 'window.app && app.ready', delayMs: 100, device: 'both' }, + list: { path: '/?screen=list', waitFor: 'window.app && app.ready', delayMs: 100, device: 'both' }, + share: { path: '/?screen=share', waitFor: 'window.app && app.ready', delayMs: 100, device: 'both' }, + account: { path: '/?screen=account', waitFor: 'window.app && app.ready', delayMs: 100, device: 'both' }, + }, + }, + }, +}; + +export default config; diff --git a/examples/demo-app/web/index.html b/examples/demo-app/web/index.html new file mode 100644 index 00000000..dd78b74e --- /dev/null +++ b/examples/demo-app/web/index.html @@ -0,0 +1,85 @@ + + + + + +Tidy Lists (storebound demo) + + + + +
+ + +