Rename to storebound (plugin, CLI, config file, credentials folder, repo)
This commit is contained in:
parent
ecb3dc3dc3
commit
0ca1d464e4
52 changed files with 171 additions and 171 deletions
|
|
@ -1,6 +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.
|
||||
// crt-ship check
|
||||
// storebound check
|
||||
import { existsSync, readFileSync } from 'node:fs';
|
||||
import { playCodes } from './lib/config';
|
||||
import { len, parseAppStoreListing, parsePlayListing } from './lib/copy';
|
||||
|
|
@ -44,8 +44,8 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
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);
|
||||
for (const f of new Set(files)) if (!existsSync(resolve(f))) problems.push(`missing file: ${f}`);
|
||||
if (existsSync(resolve('.gitignore')) && !/^\/?\.crt-ship\/?$/m.test(readFileSync(resolve('.gitignore'), 'utf8')))
|
||||
problems.push('.gitignore does not ignore .crt-ship/ (credentials live there)');
|
||||
if (existsSync(resolve('.gitignore')) && !/^\/?\.storebound\/?$/m.test(readFileSync(resolve('.gitignore'), 'utf8')))
|
||||
problems.push('.gitignore does not ignore .storebound/ (credentials live there)');
|
||||
|
||||
if (problems.length) { for (const p of problems) console.error(` - ${p}`); throw new Error(`${problems.length} problems`); }
|
||||
log('check', 'all good');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue