Compare commits
No commits in common. "4511b5e2c69f9b8bd54953588371a8972e2c4d65" and "1248bb0b3b68ed88f7a8137840c48d6a319146a7" have entirely different histories.
4511b5e2c6
...
1248bb0b3b
4 changed files with 8 additions and 14 deletions
|
|
@ -5,7 +5,6 @@
|
||||||
// storebound check --aso keyword audit of both listing files (App Store keyword field, Play stuffing); exit 1 on errors
|
// storebound check --aso keyword audit of both listing files (App Store keyword field, Play stuffing); exit 1 on errors
|
||||||
// --json structured result ({ ok, items, warnings, problems } or { findings, errors }), exit 1 on problems
|
// --json structured result ({ ok, items, warnings, problems } or { findings, errors }), exit 1 on problems
|
||||||
import { existsSync, readFileSync } from 'node:fs';
|
import { existsSync, readFileSync } from 'node:fs';
|
||||||
import { relative } from 'node:path';
|
|
||||||
import { type AsoFinding, auditAso } from './lib/aso';
|
import { type AsoFinding, auditAso } from './lib/aso';
|
||||||
import { playCodes } from './lib/config';
|
import { playCodes } from './lib/config';
|
||||||
import { APPLE_IAP_LIMITS, len, parseAppStoreListing, parsePlayListing } from './lib/copy';
|
import { APPLE_IAP_LIMITS, len, parseAppStoreListing, parsePlayListing } from './lib/copy';
|
||||||
|
|
@ -39,12 +38,7 @@ export async function run(ctx: Ctx): Promise<void> {
|
||||||
const warnings: string[] = [];
|
const warnings: string[] = [];
|
||||||
const note = (msg: string): void => { warnings.push(msg); warn('check', msg); };
|
const note = (msg: string): void => { warnings.push(msg); warn('check', msg); };
|
||||||
const tryDo = (what: string, fn: () => string): void => {
|
const tryDo = (what: string, fn: () => string): void => {
|
||||||
try { const detail = fn(); items.push({ what, detail }); log('check', `${what}: ${detail}`); } catch (e) {
|
try { const detail = fn(); items.push({ what, detail }); log('check', `${what}: ${detail}`); } catch (e) { problems.push(`${what}: ${(e as Error).message}`); }
|
||||||
const err = e as NodeJS.ErrnoException;
|
|
||||||
// a missing file is the common first-run case: name it and say how to fix it, not the raw ENOENT
|
|
||||||
const file = err.code === 'ENOENT' && typeof err.path === 'string' ? relative(process.cwd(), err.path) || err.path : '';
|
|
||||||
problems.push(file ? `${what}: ${file} is missing · storebound init creates it` : `${what}: ${err.message}`);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (config.play) tryDo('play listing', () => {
|
if (config.play) tryDo('play listing', () => {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export function profileIssues(config: ShipConfig, o: { demoAccount: boolean }):
|
||||||
}
|
}
|
||||||
} else if (config.dataSafety && !acm.includes('PSL_ACM_NONE')) warn('dataSafety.accountCreation lists sign-up methods but accounts.enabled is not set: add accounts { enabled: true, deletionUrl, inApp }');
|
} else if (config.dataSafety && !acm.includes('PSL_ACM_NONE')) warn('dataSafety.accountCreation lists sign-up methods but accounts.enabled is not set: add accounts { enabled: true, deletionUrl, inApp }');
|
||||||
if (config.reviewAccess?.signInRequired) {
|
if (config.reviewAccess?.signInRequired) {
|
||||||
if (!o.demoAccount) err('App Review needs a demo account (sign-in required) · add reviewDemoAccount to .storebound/credentials.json · review-access skill');
|
if (!o.demoAccount) err('reviewAccess.signInRequired: no demo account ("reviewDemoAccount" in .storebound/credentials.json, or REVIEW_DEMO_USER / REVIEW_DEMO_PASSWORD; review-access skill)');
|
||||||
if (!config.reviewAccess.instructions) warn('reviewAccess.instructions: tell the reviewer how to sign in and where the main features are');
|
if (!config.reviewAccess.instructions) warn('reviewAccess.instructions: tell the reviewer how to sign in and where the main features are');
|
||||||
} else if (accounts && config.reviewAccess === undefined) warn('the app has accounts: set reviewAccess { signInRequired } so App Review and Play App access get a demo account when needed');
|
} else if (accounts && config.reviewAccess === undefined) warn('the app has accounts: set reviewAccess { signInRequired } so App Review and Play App access get a demo account when needed');
|
||||||
const subs = allSubscriptions(config.subscriptions);
|
const subs = allSubscriptions(config.subscriptions);
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@
|
||||||
<meta name="twitter:title" content="storebound · take your app or game from zero to Submit for review">
|
<meta name="twitter:title" content="storebound · take your app or game from zero to Submit for review">
|
||||||
<meta name="twitter:description" content="For mobile apps and games: app records, in-app products and subscriptions, listings in every language, every questionnaire, privacy, icons, screenshots. One config and your AI coding agent.">
|
<meta name="twitter:description" content="For mobile apps and games: app records, in-app products and subscriptions, listings in every language, every questionnaire, privacy, icons, screenshots. One config and your AI coding agent.">
|
||||||
<meta name="twitter:image" content="https://storebound.dev/og.png">
|
<meta name="twitter:image" content="https://storebound.dev/og.png">
|
||||||
<link rel="stylesheet" href="style.css?v=c2cb428">
|
<link rel="stylesheet" href="style.css?v=f5bca70">
|
||||||
<script>document.documentElement.classList.add('js')</script>
|
<script>document.documentElement.classList.add('js')</script>
|
||||||
<script src="main.js?v=c2cb428" defer></script>
|
<script src="main.js?v=f5bca70" defer></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a class="skip" href="#main">Skip to content</a>
|
<a class="skip" href="#main">Skip to content</a>
|
||||||
|
|
@ -123,9 +123,9 @@
|
||||||
<p class="t-cmd" data-s="type"><i>$</i> <span>storebound check</span></p>
|
<p class="t-cmd" data-s="type"><i>$</i> <span>storebound check</span></p>
|
||||||
<p class="t-out" data-s><b>[check]</b> config ok: storebound.config.ts</p>
|
<p class="t-out" data-s><b>[check]</b> config ok: storebound.config.ts</p>
|
||||||
<p class="t-out" data-s><b>[check]</b> data safety: 764 CSV rows</p>
|
<p class="t-out" data-s><b>[check]</b> data safety: 764 CSV rows</p>
|
||||||
<p class="t-bad t-wrap" data-s>- play listing: store/listing.md is missing · storebound init creates it</p>
|
<p class="t-bad t-wrap" data-s>- play listing: ENOENT: no such file or directory, open 'store/listing.md'</p>
|
||||||
<p class="t-bad t-wrap" data-s>- appstore listing: store/appstore.md is missing · storebound init creates it</p>
|
<p class="t-bad t-wrap" data-s>- appstore listing: ENOENT: no such file or directory, open 'store/appstore.md'</p>
|
||||||
<p class="t-bad t-wrap" data-s>- App Review needs a demo account (sign-in required) · add reviewDemoAccount to .storebound/credentials.json · review-access skill</p>
|
<p class="t-bad t-wrap" data-s>- reviewAccess.signInRequired: no demo account ("reviewDemoAccount" in .storebound/credentials.json, or REVIEW_DEMO_USER / REVIEW_DEMO_PASSWORD; review-access skill)</p>
|
||||||
<p class="t-err" data-s="600" data-pill="bad">error: 3 problems</p>
|
<p class="t-err" data-s="600" data-pill="bad">error: 3 problems</p>
|
||||||
<p class="t-cmd" data-s="type"><i>$</i> <span>storebound init</span></p>
|
<p class="t-cmd" data-s="type"><i>$</i> <span>storebound init</span></p>
|
||||||
<p class="t-out" data-s><b>[init]</b> create store/listing.md</p>
|
<p class="t-out" data-s><b>[init]</b> create store/listing.md</p>
|
||||||
|
|
|
||||||
|
|
@ -146,7 +146,7 @@ describe('profile checks (offline)', () => {
|
||||||
subscriptions: [group([sub()])] }), { demoAccount: false });
|
subscriptions: [group([sub()])] }), { demoAccount: false });
|
||||||
const text = msgs.map(m => `${m.level} ${m.msg}`).join('\n');
|
const text = msgs.map(m => `${m.level} ${m.msg}`).join('\n');
|
||||||
for (const m of ['error accounts.enabled: set accounts.deletionUrl', 'warn accounts.enabled: set accounts.inApp', 'PSL_ACM_NONE', 'deletionRequest is false',
|
for (const m of ['error accounts.enabled: set accounts.deletionUrl', 'warn accounts.enabled: set accounts.inApp', 'PSL_ACM_NONE', 'deletionRequest is false',
|
||||||
'error App Review needs a demo account', 'error subscriptions: set app.termsUrl', 'without reviewScreenshot']) expect(text).toContain(m);
|
'error reviewAccess.signInRequired: no demo account', 'error subscriptions: set app.termsUrl', 'without reviewScreenshot']) expect(text).toContain(m);
|
||||||
expect(profileIssues(base({ app: { ...APP, termsUrl: 'https://example.com/t' }, accounts: { enabled: true, deletionUrl: 'https://example.com/d', inApp: 'Settings' },
|
expect(profileIssues(base({ app: { ...APP, termsUrl: 'https://example.com/t' }, accounts: { enabled: true, deletionUrl: 'https://example.com/d', inApp: 'Settings' },
|
||||||
reviewAccess: { signInRequired: true, instructions: 'x' }, subscriptions: [group([sub({ reviewScreenshot: 'p.png' })])],
|
reviewAccess: { signInRequired: true, instructions: 'x' }, subscriptions: [group([sub({ reviewScreenshot: 'p.png' })])],
|
||||||
dataSafety: { ...ds, deletionRequest: true, accountCreation: ['PSL_ACM_USER_ID_PASSWORD'] } }), { demoAccount: true })).toEqual([]);
|
dataSafety: { ...ds, deletionRequest: true, accountCreation: ['PSL_ACM_USER_ID_PASSWORD'] } }), { demoAccount: true })).toEqual([]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue