Review access and account deletion: demo account from .storebound (masked) to App Review, accounts config, profile checks in check and validate, Data safety extra rows
This commit is contained in:
parent
1e57cfec27
commit
7e1d839d68
12 changed files with 578 additions and 21 deletions
13
cli/check.ts
13
cli/check.ts
|
|
@ -1,5 +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.
|
||||
// safety answers, product texts vs store limits, the app profile (accounts + deletion, demo account for review,
|
||||
// subscriptions + terms URL) and the files the config points at. No network; credentials are only checked for presence.
|
||||
// storebound check everything above
|
||||
// storebound check --aso keyword audit of both listing files (App Store keyword field, Play stuffing); exit 1 on errors
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
|
|
@ -8,7 +9,10 @@ import { playCodes } from './lib/config';
|
|||
import { APPLE_IAP_LIMITS, len, parseAppStoreListing, parsePlayListing } from './lib/copy';
|
||||
import type { Ctx } from './lib/ctx';
|
||||
import { dataSafetyRows } from './lib/data-safety';
|
||||
import { reviewDemoAccount } from './lib/credentials';
|
||||
import { log, warn } from './lib/log';
|
||||
import { profileIssues } from './lib/profile';
|
||||
import { allSubscriptions } from './lib/subscriptions';
|
||||
import { type CopyFile, validateCopy } from './shots/lib';
|
||||
|
||||
function aso(ctx: Ctx): void {
|
||||
|
|
@ -59,8 +63,13 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
if (e.length) throw new Error(e.join('; '));
|
||||
return `${Object.keys(copy).length} languages x ${config.shots!.scenes.length} scenes`;
|
||||
});
|
||||
for (const i of profileIssues(config, { demoAccount: !!reviewDemoAccount(ctx.loaded.root) })) {
|
||||
if (i.level === 'error') problems.push(i.msg); else warn('check', i.msg);
|
||||
}
|
||||
const subs = allSubscriptions(config.subscriptions);
|
||||
if (subs.length) log('check', `subscriptions: ${subs.length} in ${config.subscriptions!.length} group(s)`);
|
||||
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);
|
||||
...(config.products ?? []).map(p => p.reviewScreenshot), ...subs.map(x => x.sub.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')) && !/^\/?\.storebound\/?$/m.test(readFileSync(resolve('.gitignore'), 'utf8')))
|
||||
problems.push('.gitignore does not ignore .storebound/ (credentials live there)');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue