acceptance: the app fixture carries the owner's answers (unanswered: [], its own name and copyright; template answers are refused before store writes); macOS results of 0.8.4 (123/123 on Node 20, Node 22, Bun), docs/acceptance.md regenerated
This commit is contained in:
parent
af858a3f36
commit
b350781ab5
5 changed files with 383 additions and 380 deletions
|
|
@ -302,6 +302,9 @@ function makeAppTemplate(dir: string): void {
|
|||
if (r.exitCode !== 0) throw new Error(`init of the app template failed: ${r.stderr.toString()}`);
|
||||
const cfg = join(dir, 'storebound.config.ts');
|
||||
writeFileSync(cfg, readFileSync(cfg, 'utf8').replace(/bundleId: 'com\.example\.app',/, `bundleId: 'com.example.app',\n appId: '${APP_ID}',`)
|
||||
// the owner's answers (template answers are refused before any store write since 0.8.4)
|
||||
.replace(/\n unanswered: \[[^\]]*\],/, '\n unanswered: [],').replace("name: 'Example App',", "name: 'Acceptance Notes',")
|
||||
.replace("copyright: '2026 Example Studio',", "copyright: '2026 Acceptance Studio',")
|
||||
.replace(/\n subscriptions: \[/, `\n products: [{ id: 'com.example.app.lifetime', type: 'non_consumable', usd: 49.99,\n listings: { en: { title: 'Lifetime', description: 'Pro forever.' }, tr: { title: 'Ömür boyu', description: 'Sonsuza dek Pro.' } } }],\n subscriptions: [`));
|
||||
const ec = generateKeyPairSync('ec', { namedCurve: 'P-256' }).privateKey.export({ type: 'pkcs8', format: 'pem' }).toString();
|
||||
const rsa = generateKeyPairSync('rsa', { modulusLength: 2048 }).privateKey.export({ type: 'pkcs8', format: 'pem' }).toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue