Skip to content

The swiss army knife of lossless video/audio editing

storeRelease: also show the Mac App Store blocker in dry runs; clarify how to remove a waiting store version

Claudec7d3253c2d0a
diff --git a/RELEASING.md b/RELEASING.md
index 5366dd95..ddb44d9a 100644
--- a/RELEASING.md
+++ b/RELEASING.md
@@ -64,7 +64,7 @@ What the script does:
- **Microsoft Store**: creates a submission, replaces the packages with both `.appx` files from the GitHub release (renamed without `-DONT-USE-THIS-FILE`), sets en-US "What's new", gradual rollout at 0%, "Don't publish until I select Publish now", and submits for certification. Don't edit a submission in Partner Center that the script created, or the API can no longer change it.
- If the version is already submitted or released, it says so and does nothing.
- It stops before changing anything when a store isn't ready for a new version: Mac App Store while another version is in review or waiting to be released, Microsoft Store while another submission is pending or the previous gradual rollout hasn't finished (finalize it with `msstore-rollout 100`, or halt it). A dry run goes on and prints `BLOCKED` where a real run would stop.
-- When such a waiting version or submission is an older build: if it doesn't have a regression on that platform, release it (and move the store branch), and the next store release can come later; otherwise remove it. Mac App Store: release it (a version waiting for release only has "Release This Version"; a rejected one is reused by the script). Microsoft Store: cancel the certification and delete the submission in Partner Center. The script copies the last *published* submission, so edits in a deleted one are lost, except what the script sets (packages, en-US "What's new", rollout, publish option).
+- When such a waiting version or submission is an older build: if it doesn't have a regression on that platform, release it (and move the store branch), and the next store release can come later; otherwise remove it. Mac App Store: in App Store Connect, release it, or remove it from review (then it's rejected, and the script reuses that version number for the new build). In 3.70.2's case, a version waiting for release only offered "Release This Version". Microsoft Store: delete the submission in Partner Center (cancel the certification first if it's still in certification). Releasing an older Microsoft Store submission starts its gradual rollout, which blocks the next one until the rollout finishes (or `msstore-rollout 100`). The script copies the last *published* submission, so edits in a deleted one are lost, except what the script sets (packages, en-US "What's new", rollout, publish option).
- Description, keywords and screenshots are not touched; update them by hand if needed.
If it fails, use the manual steps below.
diff --git a/script/storeRelease.ts b/script/storeRelease.ts
index fc55beb6..6fc2da43 100644
--- a/script/storeRelease.ts
+++ b/script/storeRelease.ts
@@ -167,7 +167,7 @@ async function mas(version: string) {
return;
}
const inFlight = versions.find((v) => ['WAITING_FOR_REVIEW', 'WAITING_FOR_EXPORT_COMPLIANCE', 'IN_REVIEW', 'ACCEPTED', 'PENDING_DEVELOPER_RELEASE', 'PENDING_APPLE_RELEASE', 'PROCESSING_FOR_DISTRIBUTION'].includes(String(v.attributes['appVersionState'])));
- assert(editable || !inFlight, `App Store version ${inFlight?.attributes['versionString']} is ${inFlight?.attributes['appVersionState']}; release it (or remove it from review) before creating a new version`);
+ if (!editable && inFlight) blocker(`App Store version ${inFlight.attributes['versionString']} is ${inFlight.attributes['appVersionState']}; release it (or remove it from review) before creating a new version`);
const [major, minor] = String(versions[0]!.attributes['versionString']).split('.').map(Number);
const versionString = editable ? String(editable.attributes['versionString']) : `${major}.${minor! + 1}`;