Skip to content

Store Screenshots: App Store Connect upload script #840

Closed

Description

@ivanfenenko

Store screenshots upload to App Store Connect from a script instead of by hand in the Media Manager.

The 1.2.0 set (#836) was uploaded manually through the web UI because the repo has no screenshot upload step: ios-release.yml only uploads the IPA to TestFlight with altool, and scripts/store-screenshots/push-store-shots.mjs pushes to a separate store-shots instance, not App Store Connect. The App Store Connect API key (ASC_API_KEY_P8, ASC_KEY_ID, ASC_ISSUER_ID) exists only as GitHub secrets.

Needs the App Store Connect API (appScreenshotSets / appScreenshots) to replace the iPhone 6.9" and iPad 13" sets on an editable version, in order, without submitting for review. Related to #836.

Inputs

  • Directory: the rendered Spectrum slides, not the raw captures. The renderer writes them to store-screenshots/spectrum/app-store-iphone-6.9/ (1320×2868) and store-screenshots/spectrum/app-store-ipad-13/ (2064×2752). The renderer is still the untracked prototype in prototypes/store-shots-spectrum/ until Store Screenshots: 8-shot Spectrum set #836 moves it into scripts/store-screenshots/; the script takes the directory as an option and defaults to store-screenshots/spectrum/.
  • Order: file-name order (01-…png, 02-…png, …). Refuse to upload when a file's pixel size does not match its display type.
  • Locale: en-US only. Fail if the editable version has no en-US localization instead of guessing another.
  • iPad source: scripts/store-screenshots.mjs has no iPad target; the raw captures in store-screenshots/ipad-13/ come from a manual run. The upload script only reads the rendered app-store-ipad-13/ folder, so it does not depend on how iPad was captured. When that folder is missing, skip iPad with a message rather than delete the existing iPad set.

API key role

Uploading builds with altool works with a Developer-role key, but changing App Store screenshots needs App Manager or Admin. Check the role of the key behind ASC_KEY_ID in App Store Connect → Users and Access → Integrations before relying on it; the script should report a 403 as a role problem.

Where it runs (recommended: local)

Run it locally with a key the user supplies (ASC_KEY_ID, ASC_ISSUER_ID, and a path to the .p8, read from the environment and never committed). The rendered slides are gitignored and exist only on the machine that captured them, so a workflow_dispatch job has nothing to upload unless it also captures and renders, which is out of scope. A local script also keeps the ASC key out of another workflow once the repo is public.

Remaining:

  • Confirm the local-run choice above, or replace it on this issue
  • Script it: find the editable version and its en-US localization, delete the old screenshots in the target display type, upload the new ones in file order, wait for processing
  • Dry-run mode that lists what would be replaced, and a guard against submitting for review
  • Confirm the ASC key has the App Manager role, or create one that does

Activity

  1. added
    ios
    improvement
    backlog
    priority: low
    on Oct 25, 2026
  2. added a commit that references this issue on Oct 26, 2026
  3. ivanfenenko commented on Oct 26, 2026

    @ivanfenenko
    CollaboratorAuthor

    Shipped in #852.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogimprovementiospriority: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions