Console pages as absolute deep links: cli/lib/console-links.ts builds the URL of every App Store Connect / Play Console page from apple.appId, play.developerId and play.appId (app list / developer chooser when unknown); every plain 'App Store Connect > ...' / 'Play Console > ...' direction in cli/ and templates/ now carries it, validate / scan / declarations / release plan JSON carry url, the desktop shows an Open button; tests/console-links.test.ts guards it; AGENTS rule 11, pitfall 71
This commit is contained in:
parent
f898d642d0
commit
e500e88e40
50 changed files with 381 additions and 92 deletions
|
|
@ -8,6 +8,7 @@
|
|||
// or a place on the Console's uploader list. See skills/adhoc-distribution/SKILL.md.
|
||||
// Sources (checked October 2026): https://developers.google.com/android-publisher/api-ref/rest/v3/internalappsharingartifacts
|
||||
// and https://support.google.com/googleplay/android-developer/answer/9844679 (details in cli/lib/play-share.ts).
|
||||
import { consoleLink } from '../lib/console-links';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { createReadStream, existsSync, readFileSync, statSync } from 'node:fs';
|
||||
import type { Ctx } from '../lib/ctx';
|
||||
|
|
@ -61,7 +62,7 @@ export async function run(ctx: Ctx): Promise<void> {
|
|||
res = await play.call('POST', shareUrl(pkg, kind), new Uint8Array(readFileSync(file)), { ...SHARE_HEADERS });
|
||||
} catch (e) {
|
||||
const m = (e as Error).message;
|
||||
if (/-> 403/.test(m)) throw new Error(`${m}\n\nThe service account needs "Release apps to testing tracks" for this app, or a place on the internal app sharing uploader list (Play Console > Internal app sharing).`);
|
||||
if (/-> 403/.test(m)) throw new Error(`${m}\n\nThe service account needs "Release apps to testing tracks" for this app, or a place on the internal app sharing uploader list (${consoleLink('play.internal-sharing')}).`);
|
||||
throw e;
|
||||
} finally { clearInterval(beat); }
|
||||
const art = parseShareArtifact(res);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue