Skip to content

feat(scripts): App Store release path - #546

Merged
tieubao merged 2 commits into
developfrom
feat/release-mas
Nov 18, 2026
Merged

tieubao merged 2 commits into
developfrom
feat/release-mas

Conversation

@tieubao

@tieubao tieubao commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

What

The Hidden Bar App Store release path, moved from a session scratchpad into the repo.

  • scripts/release-mas.sh: archive, manual-sign (Apple Distribution plus the installed MAS profile), export and check the App Store pkg. --dry-run runs preflight only.
  • scripts/asc-release.py: upload, create the version (release type automatic after approval), attach the build (export compliance: no non-exempt encryption), set the review contact, apply docs/appstore/listing.json, submit. --dry-run does offline checks and GET reads only and stops before upload and submit. Standard library only.
  • scripts/test-release-mas.sh (plus scripts/test-asc-release.py): offline tests, no network.
  • RUNBOOK section "App Store release": order (direct release first, then App Store), steps, env vars.

No hardcoded key id, issuer, profile or scratch path: everything comes from HB_* env vars or 1Password (Connect first), documented in the RUNBOOK table.

Verification

  • bash scripts/test-release.sh: 62 passed.
  • bash scripts/test-release-mas.sh: 25 passed (30 Python cases inside).
  • Negative controls: mutating the umask, release type, export compliance, dry-run guard, signing style, pkg mode check or the archived-app check turns a case red.
  • Live, read-only: asc-release.py release 1.13.1 22 --dry-run against the real account (key from 1Password) reports version 1.13.1 and build 22 as already present and writes nothing.

scripts/release-mas.sh builds, signs (manual, Apple Distribution plus the installed MAS profile) and exports the App Store pkg. scripts/asc-release.py uploads, creates the version, attaches the build, applies docs/appstore/listing.json and submits; --dry-run does every offline check and every read, writes nothing, and stops before upload and submit. Credentials come from HB_* env vars or 1Password, nothing is hardcoded. scripts/test-release-mas.sh covers argument parsing, the env-var checks, the listing mapping, the umask lesson and the dry-run write guard. RUNBOOK gains an App Store release section: direct release first, then the App Store.
Error 90255 is about files inside the package that only root can read, so the build now checks the archived app before export, next to the pkg mode check. Wording in the scripts and RUNBOOK follows.
@tieubao
tieubao merged commit f76070b into develop Nov 18, 2026
3 checks passed
@tieubao
tieubao deleted the feat/release-mas branch November 18, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant