Skip to content

The swiss army knife of lossless video/audio editing

Move release instructions into RELEASING.md

Claude896a45189189
diff --git a/.github/workflows/store-release.yml b/.github/workflows/store-release.yml
index b9195147..c4c8becf 100644
--- a/.github/workflows/store-release.yml
+++ b/.github/workflows/store-release.yml
@@ -1,4 +1,4 @@
-# Runs script/storeRelease.ts, see CONTRIBUTING.md → "Release in Stores"
+# Runs script/storeRelease.ts, see RELEASING.md → "Release in Stores"
name: Store release
on:
diff --git a/AGENTS.md b/AGENTS.md
index f41a3aed..209f2443 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -12,44 +12,12 @@ Validate --settings-json with zod
Changelog: `--settings-json` is now validated; invalid input is logged and ignored instead of being written to the config
```
-When preparing a release, run `yarn release-notes` to collect these since the last tag, and use them to write `versions/<version>.md` (shown in the app's What's New dialog) and the GitHub release notes.
+These are collected when releasing, see [RELEASING.md](./RELEASING.md).
## FFmpeg
Only the bundled FFmpeg version (`script/downloadFfmpeg.ts`) is supported. Don't add or keep code for compatibility with older FFmpeg versions (e.g. old option names or log formats). When upgrading FFmpeg, remove such code.
-## Store release notes
-
-The stores lag behind GitHub releases, so their "What's new" text must cover every version since the one currently live in that store. Ask which version that is (Mac App Store: App Store Connect; Microsoft Store: Partner Center → the product's current submission → Packages), then combine `versions/*.md` after it up to the version being released. Mac App Store versions have their own numbering (1.x); the GitHub version is that of the build attached to it.
-
-- Write for customers: lead with the most impactful new features and visible fixes. Leave out internals (dependency/FFmpeg upgrades, security fixes, refactors) and niche power-user details; they're covered by a final "Many other improvements and fixes". The longer since the last store release, the more of the interesting changes can be included.
-- Plain text, no Markdown, code formatting, issue references or links. Use plain-language feature names instead of internal action/variable names.
-- Leave out what doesn't apply to that store's build: items for other platforms (App Review rejects mentions of other platforms), GitHub-only builds, custom FFmpeg path (not in the Mac App Store build), update checks.
-- Microsoft Store: max 1500 characters. Mac App Store: max 4000 characters.
-- Write them to `store-release-notes/mas-<version>.txt` and `store-release-notes/msstore-<version>.txt`, where `script/storeRelease.ts` reads them, and ask the user to review them before committing. Only run the script with `--prepare` or `--submit` (or the Store release workflow with "submit") after the user approves the text and the dry-run output.
-
-## Release announcement
-
-After a GitHub release is published, draft one post per channel from `versions/<version>.md` and the release link, and show them to the user before posting:
-
-| Channel | Where | Limit |
-|---|---|---|
-| Discord | #general of https://discord.gg/fhnEREfUJ3 (there's no announcements channel) | 2000 chars |
-| X | https://x.com/losslesscut (then repost from @mifi_no) | 280 chars |
-| Bluesky | https://bsky.app/profile/losslesscut.app | 300 chars |
-| Mastodon | https://mastodon.social/@losslesscut | 500 chars |
-| Instagram | https://www.instagram.com/losslesscut.app/ (Create → Post on the website) | 2200 chars, links aren't clickable: say "link in bio" |
-
-- Start with "LosslessCut x.y.z is out", then the 1–3 most interesting changes for users, then the release link (https://github.com/mifi/lossless-cut/releases/tag/vx.y.z). Discord can take the full list.
-- Plain text, no issue references. The link counts toward the limit (on X and Mastodon as 23 chars). A patch release that only fixes one platform can be a single line.
-- Hashtags go at the end, in CamelCase (readable for screen readers), and count toward the limit. They matter most on Mastodon, which has no recommendation algorithm, so people find posts by following hashtags: use 3–4, e.g. `#LosslessCut #FFmpeg #VideoEditing #OpenSource`. Bluesky: 1–2 (`#LosslessCut #OpenSource`). Instagram: 3–5. X: at most `#LosslessCut`. Discord: none.
-- Post to all channels by default.
-- Attach an image made with `node script/releaseImage.ts <version> [--bg photo.jpg] [--position top|bottom|left|right|center] [--caption "..."] [--square] "highlight 1" "highlight 2" "highlight 3"` (1600×900 PNG in `dist/`, or 1080×1080 with `--square`, e.g. for Instagram). Ask the user for a recent photo of theirs to use as the background (optional) and a short caption for it (where/what, shown small in the corner). The photo is cropped to keep its most interesting part; look at the result, and if the subject is cut off (e.g. a portrait photo) or hidden behind the text, try `--position` (top/bottom for a portrait photo, left/right for a wide one). Keep highlights short so they fit on one line. Never commit the photo or the image. Add alt text, e.g. "LosslessCut 3.70.1: <highlights>".
- - Phone photos are often HEIC: convert with `sips -s format jpeg photo.HEIC --out photo.jpg` (sharp can't read HEIC). Files in `~/Downloads` may not be readable from the shell (macOS privacy protection); ask the user to move the photo to the Desktop.
- - `--position` only moves the crop along the axis that gets cut, so a 4:3 photo in the 16:9 image can only move up/down. If the subject still ends up behind the text, crop the photo first (e.g. with sharp's `extract`) so the subject sits in the right half.
-- Post through the user's logged-in browser. Fill in the post and let the user confirm before clicking Post.
- - The built-in browser can't pick files in the upload dialog: copy the images to the Desktop with clear names (e.g. `losslesscut-3.70.1.png`, `losslesscut-3.70.1-square.png`), click the platform's attach button, and ask the user to pick the file.
- - Bluesky turns a typed URL into a link card and removes it from the text, and an attached image replaces the card. After attaching the image, check that the link is still in the text, and type it again at the end if not.
- - Discord sends on Enter, and typing a long multi-line message into it in the built-in browser drops lines. Put the message on the clipboard with `pbcopy`, ask the user to paste it into the message box with Cmd+V, and check the box before sending.
- - After posting, open the profile and note the post's URL.
- - After the X post, remind the user to repost it from their personal account @mifi_no (it's usually not signed in in the built-in browser, so the user does it). Check the post's reposts list (`/status/<id>/retweets`) to confirm.
+## Releasing
+
+When helping with a release, follow [RELEASING.md](./RELEASING.md), including the sections written for agents (store release notes, release announcement).
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 4e12822e..8428a9ff 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -85,127 +85,7 @@ Windows store version is built as a Desktop Bridge app (with `runFullTrust` capa
## Releasing
-Before releasing, consider [Maintenance chores](#maintenance-chores) first.
-
-### Prepare and build new version
-
-- `git checkout master`
-- `git merge stores` (in case there's an old unmerged stores hotfix)
-- **Prepare release notes**: `yarn release-notes` lists the `Changelog:` lines from commits since the last tag (see [AGENTS.md](./AGENTS.md)). Older commits don't have them, so also go through `node script/getCommits.ts`.
-- Create a new file `versions/x.y.z.md` and write the most important highlights from the release notes, but **remove github issue #references**
-- `node script/generateVersions.ts && git add versions/*.md src/renderer/src/versions.json && git commit -m 'Update change log'`
-- *If Store-only hotfix release*
- - `git checkout stores`
- - `npm version patch`
-- *If normal GitHub-first release*
- - `npm version minor && git --no-pager show`
-- `git push --follow-tags`
-- Wait for build and draft in Github actions
-
-### Release built version
-
-- Optionally, install the Mac App Store build from TestFlight (it shows up in App Store Connect after processing) and check that it starts and can open and export a file. This catches problems that only happen in the sandboxed MAS build.
-- Open draft in github and add the prepared release notes
-- *If GitHub release*
- - Release the draft
-- *If Store-only hotfix release*
- - Remove all other artifacts and release the draft as **pre-release**
-
-#### After releasing in GitHub
-
-- *If Stores-only hotfix release*
- - `git checkout master`
- - `git merge stores`
-- Bump [snap version](https://snapcraft.io/losslesscut/releases)
-- Post the announcement to Discord, X, Bluesky, Mastodon and Instagram (see [Release announcement](./AGENTS.md#release-announcement))
-
-### Release in Stores
-
-Usually some time after the GitHub release, once no serious regressions have been reported.
-
-This is automated with [`script/storeRelease.ts`](./script/storeRelease.ts), run by the [Store release](https://github.com/mifi/lossless-cut/actions/workflows/store-release.yml) workflow (or locally, see below):
-
-1. Write the "What's new" text for each store (see [Store release notes](./AGENTS.md#store-release-notes)) to `store-release-notes/mas-x.y.z.txt` and `store-release-notes/msstore-x.y.z.txt`, review it, commit and push.
-2. Actions → Store release → Run workflow, with command `mas` or `msstore`, version `x.y.z` and "submit" unticked. The log shows the current state and what it would change.
-3. If that looks right, run it again with "submit" ticked.
-4. Once approved/certified (you'll get an email):
- - **Mac App Store**: click "Release this version" in [App Store Connect](https://appstoreconnect.apple.com/apps/1505323402/distribution). The 7-day phased release then runs by itself.
- - **Microsoft Store**: click "Publish now" in [Partner Center](https://partner.microsoft.com/en-us/dashboard/products/9P30LSR4705L/overview). The rollout starts at 0%, and the workflow's daily schedule increases it to 1, 2, 5, 10, 20, 50 and 100% (finalized). To pause it, halt the rollout in Partner Center (the schedule then leaves it alone), or set a percentage yourself with the `msstore-rollout` command.
-
-What the script does:
-
-- **Mac App Store**: App Store versions have their own numbering (1.x, e.g. 1.14), separate from the GitHub/build version (`package.json`, e.g. 3.70.1), which is the build attached to it. The script takes the build version, and creates the next App Store version (1.14 → 1.15) or reuses the editable one. It waits for the build to finish processing and attaches it, sets en-US "What's New", the privacy policy URL (from `src/common/websiteUrls.ts`), manual release, 7-day phased release, and submits for review.
-- **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).
-- Description, keywords and screenshots are not touched; update them by hand if needed.
-
-If it fails, use the manual steps below.
-
-#### Running locally
-
-```bash
-node script/storeRelease.ts mas x.y.z # dry run: shows the current state and what it would change
-node script/storeRelease.ts mas x.y.z --prepare # optional: apply the changes without submitting, to check them in App Store Connect
-node script/storeRelease.ts mas x.y.z --submit # apply and submit for review
-node script/storeRelease.ts msstore x.y.z # dry run
-node script/storeRelease.ts msstore x.y.z --submit
-node script/storeRelease.ts msstore-rollout 20 --submit # or "next"
-```
-
-with the credentials below as environment variables (never commit them).
-
-#### Credentials
-
-GitHub repository secrets, used by the workflow:
-
-- **Mac App Store**: `api_key` (the `.p8` file's contents), `api_key_id`, `api_key_issuer_id`, also used by the build workflow. Locally: `ASC_KEY_ID`, `ASC_ISSUER_ID` and the key in `~/.appstoreconnect/private_keys/AuthKey_<ASC_KEY_ID>.p8` (or `ASC_KEY_PATH`). The key needs the **App Manager** (or Admin) role. Create one in [App Store Connect → Users and Access → Integrations → App Store Connect API](https://appstoreconnect.apple.com/access/integrations/api) → Team Keys; the Issuer ID is shown at the top of that page.
-- **Microsoft Store**: `MSSTORE_TENANT_ID`, `MSSTORE_CLIENT_ID`, `MSSTORE_CLIENT_SECRET` (same names locally). One-time setup:
- 1. Partner Center → ⚙ Account settings → **Tenants**: associate a Microsoft Entra ID tenant, or create a new one there ([docs](https://learn.microsoft.com/en-us/windows/apps/publish/partner-center/associate-azure-ad-with-partner-center)). You need to be Global administrator of the tenant.
- 2. Account settings → **User management** (signed in with the tenant's account) → **Microsoft Entra applications** tab → **Add Microsoft Entra application** → **Create Microsoft Entra application**. Any name (e.g. `losslesscut-store-release`) and any unique Reply URL (e.g. `https://example.com/store-release`, it's not used). Role: **Manager**. Click **Create**.
- 3. The Client ID is shown in the list of applications, and the Tenant ID under Account settings → Tenants.
- 4. Click the application → **Add new key** and copy the **Key** (the client secret, shown only once). The page shows when the key expires; add a new one before that, and update the `MSSTORE_CLIENT_SECRET` secret.
-
-#### Microsoft Store (manual)
-
-1. Download `LosslessCut-win-x64-DONT-USE-THIS-FILE.appx` and `LosslessCut-win-arm64-DONT-USE-THIS-FILE.appx` from the GitHub release, and remove `-DONT-USE-THIS-FILE` from the file names
-2. Open the [Partner Center](https://partner.microsoft.com/en-us/dashboard/products/9P30LSR4705L/overview) and click "Start update"
-3. "Packages": click the caret next to "Unchanged", then drag-drop both renamed files into the upload area. Both architectures go in the same submission and the Store serves the right one to each device (if a submission ever used an `.appxbundle`, later ones must too, see [#2789](https://github.com/mifi/lossless-cut/issues/2789))
-4. Tick "Roll out update gradually", start rollout with 0%, wait for the uploads to finish and click "Save"
-5. "Submission Options" (caret): tick "Don't publish this submission until I select Publish now"
-6. "Store listings" → "Languages supported in packages" → "English (United States)": replace "What's new in this version" (see [Store release notes](./AGENTS.md#store-release-notes)). If needed, also update "Description", "Product features" and screenshots
-7. Go back and click "Submit for certification"
-8. Once certified, publish it, and increase the rollout by ~15% every day or so
-
-#### Mac App Store (manual)
-
-Tag builds already upload the build to App Store Connect (`(MacOS) Upload to Mac App Store` in `build.yml`).
-
-1. In [App Store Connect](https://appstoreconnect.apple.com/apps/1505323402/distribution), create a new version, numbered after the previous App Store version (e.g. 1.14 → 1.15), not the GitHub version
-2. "Build": click "Add Build" and pick the build of this version
-3. Update "What's New in This Version" (see [Store release notes](./AGENTS.md#store-release-notes)). If needed, also update "Description" and screenshots
-4. "App Store Version Release": tick "Manually release this version"
-5. "Phased Release for App Store Automatic Updates": tick "Release update over 7-day period using phased release"
-6. Save, then "Add for Review"
-7. Once approved, release it
-
-### After releasing existing GitHub version in Stores
-
-- `git checkout stores`
-- Find the tag just released in the Stores
-- Merge this tag (from `master`) into `stores`: `git merge vX.Y.Z`
-- `git push`
-- `git checkout master`
-
-### More info
-
-For per-platform build/signing setup, see [this article](https://mifi.no/blog/automated-electron-build-with-release-to-mac-app-store-microsoft-store-snapcraft/).
-
-### Yearly Apple certificate renewal
-
-Apple sends an email when certificates are about to expire. Follow the "Certificate creation/renewal" section of [the article above](https://mifi.no/blog/automated-electron-build-with-release-to-mac-app-store-microsoft-store-snapcraft/). LosslessCut specifics:
-
-- The Development provisioning profile is kept in the project root as `LosslessCut_Dev.provisionprofile` (gitignored) — replace it with the newly downloaded one, for use with `yarn pack-mas-dev`.
+See [RELEASING.md](./RELEASING.md).
## Minimum OS version
diff --git a/RELEASING.md b/RELEASING.md
new file mode 100644
index 00000000..cb1965d9
--- /dev/null
+++ b/RELEASING.md
@@ -0,0 +1,171 @@
+# Releasing
+
+Overview, in order:
+
+1. [Prepare and build new version](#prepare-and-build-new-version): release notes, version bump, tag.
+2. [Release built version](#release-built-version): check the draft, then publish it on GitHub.
+3. [After releasing in GitHub](#after-releasing-in-github): snap, [release announcement](#release-announcement).
+4. [Release in Stores](#release-in-stores), usually a couple of weeks later once no serious regressions have been reported, with [store release notes](#store-release-notes).
+5. [After releasing existing GitHub version in Stores](#after-releasing-existing-github-version-in-stores).
+
+Before releasing, consider [Maintenance chores](./CONTRIBUTING.md#maintenance-chores) first.
+
+## Prepare and build new version
+
+- `git checkout master`
+- `git merge stores` (in case there's an old unmerged stores hotfix)
+- **Prepare release notes**: `yarn release-notes` lists the `Changelog:` lines from commits since the last tag (see [AGENTS.md](./AGENTS.md#commits)). Older commits don't have them, so also go through `node script/getCommits.ts`.
+- Create a new file `versions/x.y.z.md` and write the most important highlights from the release notes, but **remove github issue #references**
+- `node script/generateVersions.ts && git add versions/*.md src/renderer/src/versions.json && git commit -m 'Update change log'`
+- *If Store-only hotfix release*
+ - `git checkout stores`
+ - `npm version patch`
+- *If normal GitHub-first release*
+ - `npm version minor && git --no-pager show`
+- `git push --follow-tags`
+- Wait for build and draft in Github actions. After a tag build, the `check-release-assets` job fails if an asset is missing or more than 10% smaller than in the latest release (e.g. a build without ffmpeg); check it before publishing
+
+## Release built version
+
+- Optionally, install the Mac App Store build from TestFlight (it shows up in App Store Connect after processing) and check that it starts and can open and export a file. This catches problems that only happen in the sandboxed MAS build.
+- Open draft in github and add the prepared release notes
+- *If GitHub release*
+ - Release the draft
+- *If Store-only hotfix release*
+ - Remove all other artifacts and release the draft as **pre-release**
+
+### After releasing in GitHub
+
+- *If Stores-only hotfix release*
+ - `git checkout master`
+ - `git merge stores`
+- Bump [snap version](https://snapcraft.io/losslesscut/releases)
+- Post the announcement to Discord, X, Bluesky, Mastodon and Instagram (see [Release announcement](#release-announcement))
+
+## Release in Stores
+
+Usually some time after the GitHub release, once no serious regressions have been reported.
+
+This is automated with [`script/storeRelease.ts`](./script/storeRelease.ts), run by the [Store release](https://github.com/mifi/lossless-cut/actions/workflows/store-release.yml) workflow (or locally, see below):
+
+1. Write the "What's new" text for each store (see [Store release notes](#store-release-notes)) to `store-release-notes/mas-x.y.z.txt` and `store-release-notes/msstore-x.y.z.txt`, review it, commit and push.
+2. Actions → Store release → Run workflow, with command `mas` or `msstore`, version `x.y.z` and "submit" unticked. The log shows the current state and what it would change.
+3. If that looks right, run it again with "submit" ticked.
+4. Once approved/certified (you'll get an email):
+ - **Mac App Store**: click "Release this version" in [App Store Connect](https://appstoreconnect.apple.com/apps/1505323402/distribution). The 7-day phased release then runs by itself.
+ - **Microsoft Store**: click "Publish now" in [Partner Center](https://partner.microsoft.com/en-us/dashboard/products/9P30LSR4705L/overview). The rollout starts at 0%, and the workflow's daily schedule increases it to 1, 2, 5, 10, 20, 50 and 100% (finalized). To pause it, halt the rollout in Partner Center (the schedule then leaves it alone), or set a percentage yourself with the `msstore-rollout` command.
+
+What the script does:
+
+- **Mac App Store**: App Store versions have their own numbering (1.x, e.g. 1.14), separate from the GitHub/build version (`package.json`, e.g. 3.70.1), which is the build attached to it. The script takes the build version, and creates the next App Store version (1.14 → 1.15) or reuses the editable one. It waits for the build to finish processing and attaches it, sets en-US "What's New", the privacy policy URL (from `src/common/websiteUrls.ts`), manual release, 7-day phased release, and submits for review.
+- **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).
+- Description, keywords and screenshots are not touched; update them by hand if needed.
+
+If it fails, use the manual steps below.
+
+### Running locally
+
+```bash
+node script/storeRelease.ts mas x.y.z # dry run: shows the current state and what it would change
+node script/storeRelease.ts mas x.y.z --prepare # optional: apply the changes without submitting, to check them in App Store Connect
+node script/storeRelease.ts mas x.y.z --submit # apply and submit for review
+node script/storeRelease.ts msstore x.y.z # dry run
+node script/storeRelease.ts msstore x.y.z --submit
+node script/storeRelease.ts msstore-rollout 20 --submit # or "next"
+```
+
+with the credentials below as environment variables (never commit them).
+
+### Credentials
+
+GitHub repository secrets, used by the workflow:
+
+- **Mac App Store**: `api_key` (the `.p8` file's contents), `api_key_id`, `api_key_issuer_id`, also used by the build workflow. Locally: `ASC_KEY_ID`, `ASC_ISSUER_ID` and the key in `~/.appstoreconnect/private_keys/AuthKey_<ASC_KEY_ID>.p8` (or `ASC_KEY_PATH`). The key needs the **App Manager** (or Admin) role. Create one in [App Store Connect → Users and Access → Integrations → App Store Connect API](https://appstoreconnect.apple.com/access/integrations/api) → Team Keys; the Issuer ID is shown at the top of that page.
+- **Microsoft Store**: `MSSTORE_TENANT_ID`, `MSSTORE_CLIENT_ID`, `MSSTORE_CLIENT_SECRET` (same names locally). One-time setup:
+ 1. Partner Center → ⚙ Account settings → **Tenants**: associate a Microsoft Entra ID tenant, or create a new one there ([docs](https://learn.microsoft.com/en-us/windows/apps/publish/partner-center/associate-azure-ad-with-partner-center)). You need to be Global administrator of the tenant.
+ 2. Account settings → **User management** (signed in with the tenant's account) → **Microsoft Entra applications** tab → **Add Microsoft Entra application** → **Create Microsoft Entra application**. Any name (e.g. `losslesscut-store-release`) and any unique Reply URL (e.g. `https://example.com/store-release`, it's not used). Role: **Manager**. Click **Create**.
+ 3. The Client ID is shown in the list of applications, and the Tenant ID under Account settings → Tenants.
+ 4. Click the application → **Add new key** and copy the **Key** (the client secret, shown only once). The page shows when the key expires; add a new one before that, and update the `MSSTORE_CLIENT_SECRET` secret.
+
+### Microsoft Store (manual)
+
+1. Download `LosslessCut-win-x64-DONT-USE-THIS-FILE.appx` and `LosslessCut-win-arm64-DONT-USE-THIS-FILE.appx` from the GitHub release, and remove `-DONT-USE-THIS-FILE` from the file names
+2. Open the [Partner Center](https://partner.microsoft.com/en-us/dashboard/products/9P30LSR4705L/overview) and click "Start update"
+3. "Packages": click the caret next to "Unchanged", then drag-drop both renamed files into the upload area. Both architectures go in the same submission and the Store serves the right one to each device (if a submission ever used an `.appxbundle`, later ones must too, see [#2789](https://github.com/mifi/lossless-cut/issues/2789))
+4. Tick "Roll out update gradually", start rollout with 0%, wait for the uploads to finish and click "Save"
+5. "Submission Options" (caret): tick "Don't publish this submission until I select Publish now"
+6. "Store listings" → "Languages supported in packages" → "English (United States)": replace "What's new in this version" (see [Store release notes](#store-release-notes)). If needed, also update "Description", "Product features" and screenshots
+7. Go back and click "Submit for certification"
+8. Once certified, publish it, and increase the rollout by ~15% every day or so
+
+### Mac App Store (manual)
+
+Tag builds already upload the build to App Store Connect (`(MacOS) Upload to Mac App Store` in `build.yml`).
+
+1. In [App Store Connect](https://appstoreconnect.apple.com/apps/1505323402/distribution), create a new version, numbered after the previous App Store version (e.g. 1.14 → 1.15), not the GitHub version
+2. "Build": click "Add Build" and pick the build of this version
+3. Update "What's New in This Version" (see [Store release notes](#store-release-notes)). If needed, also update "Description" and screenshots
+4. "App Store Version Release": tick "Manually release this version"
+5. "Phased Release for App Store Automatic Updates": tick "Release update over 7-day period using phased release"
+6. Save, then "Add for Review"
+7. Once approved, release it
+
+## After releasing existing GitHub version in Stores
+
+- `git checkout stores`
+- Find the tag just released in the Stores
+- Merge this tag (from `master`) into `stores`: `git merge vX.Y.Z`
+- `git push`
+- `git checkout master`
+
+## More info
+
+For per-platform build/signing setup, see [this article](https://mifi.no/blog/automated-electron-build-with-release-to-mac-app-store-microsoft-store-snapcraft/).
+
+## Yearly Apple certificate renewal
+
+Apple sends an email when certificates are about to expire. Follow the "Certificate creation/renewal" section of [the article above](https://mifi.no/blog/automated-electron-build-with-release-to-mac-app-store-microsoft-store-snapcraft/). LosslessCut specifics:
+
+- The Development provisioning profile is kept in the project root as `LosslessCut_Dev.provisionprofile` (gitignored) — replace it with the newly downloaded one, for use with `yarn pack-mas-dev`.
+
+## Store release notes
+
+*Written for agents, who draft the text for the user to review.*
+
+The stores lag behind GitHub releases, so their "What's new" text must cover every version since the one currently live in that store. Ask which version that is (Mac App Store: App Store Connect; Microsoft Store: Partner Center → the product's current submission → Packages), then combine `versions/*.md` after it up to the version being released. Mac App Store versions have their own numbering (1.x); the GitHub version is that of the build attached to it.
+
+- Write for customers: lead with the most impactful new features and visible fixes. Leave out internals (dependency/FFmpeg upgrades, security fixes, refactors) and niche power-user details; they're covered by a final "Many other improvements and fixes". The longer since the last store release, the more of the interesting changes can be included.
+- Plain text, no Markdown, code formatting, issue references or links. Use plain-language feature names instead of internal action/variable names.
+- Leave out what doesn't apply to that store's build: items for other platforms (App Review rejects mentions of other platforms), GitHub-only builds, custom FFmpeg path (not in the Mac App Store build), update checks.
+- Microsoft Store: max 1500 characters. Mac App Store: max 4000 characters.
+- Write them to `store-release-notes/mas-<version>.txt` and `store-release-notes/msstore-<version>.txt`, where `script/storeRelease.ts` reads them, and ask the user to review them before committing. Only run the script with `--prepare` or `--submit` (or the Store release workflow with "submit") after the user approves the text and the dry-run output.
+
+## Release announcement
+
+*Written for agents, who draft and post with the user.*
+
+After a GitHub release is published, draft one post per channel from `versions/<version>.md` and the release link, and show them to the user before posting:
+
+| Channel | Where | Limit |
+|---|---|---|
+| Discord | #general of https://discord.gg/fhnEREfUJ3 (there's no announcements channel) | 2000 chars |
+| X | https://x.com/losslesscut (then repost from @mifi_no) | 280 chars |
+| Bluesky | https://bsky.app/profile/losslesscut.app | 300 chars |
+| Mastodon | https://mastodon.social/@losslesscut | 500 chars |
+| Instagram | https://www.instagram.com/losslesscut.app/ (Create → Post on the website) | 2200 chars, links aren't clickable: say "link in bio" |
+
+- Start with "LosslessCut x.y.z is out", then the 1–3 most interesting changes for users, then the release link (https://github.com/mifi/lossless-cut/releases/tag/vx.y.z). Discord can take the full list.
+- Plain text, no issue references. The link counts toward the limit (on X and Mastodon as 23 chars). A patch release that only fixes one platform can be a single line.
+- Hashtags go at the end, in CamelCase (readable for screen readers), and count toward the limit. They matter most on Mastodon, which has no recommendation algorithm, so people find posts by following hashtags: use 3–4, e.g. `#LosslessCut #FFmpeg #VideoEditing #OpenSource`. Bluesky: 1–2 (`#LosslessCut #OpenSource`). Instagram: 3–5. X: at most `#LosslessCut`. Discord: none.
+- Post to all channels by default.
+- Attach an image made with `node script/releaseImage.ts <version> [--bg photo.jpg] [--position top|bottom|left|right|center] [--caption "..."] [--square] "highlight 1" "highlight 2" "highlight 3"` (1600×900 PNG in `dist/`, or 1080×1080 with `--square`, e.g. for Instagram). Ask the user for a recent photo of theirs to use as the background (optional) and a short caption for it (where/what, shown small in the corner). The photo is cropped to keep its most interesting part; look at the result, and if the subject is cut off (e.g. a portrait photo) or hidden behind the text, try `--position` (top/bottom for a portrait photo, left/right for a wide one). Keep highlights short so they fit on one line. Never commit the photo or the image. Add alt text, e.g. "LosslessCut 3.70.1: <highlights>".
+ - Phone photos are often HEIC: convert with `sips -s format jpeg photo.HEIC --out photo.jpg` (sharp can't read HEIC). Files in `~/Downloads` may not be readable from the shell (macOS privacy protection); ask the user to move the photo to the Desktop.
+ - `--position` only moves the crop along the axis that gets cut, so a 4:3 photo in the 16:9 image can only move up/down. If the subject still ends up behind the text, crop the photo first (e.g. with sharp's `extract`) so the subject sits in the right half.
+- Post through the user's logged-in browser. Fill in the post and let the user confirm before clicking Post.
+ - The built-in browser can't pick files in the upload dialog: copy the images to the Desktop with clear names (e.g. `losslesscut-3.70.1.png`, `losslesscut-3.70.1-square.png`), click the platform's attach button, and ask the user to pick the file.
+ - Bluesky turns a typed URL into a link card and removes it from the text, and an attached image replaces the card. After attaching the image, check that the link is still in the text, and type it again at the end if not.
+ - Discord sends on Enter, and typing a long multi-line message into it in the built-in browser drops lines. Put the message on the clipboard with `pbcopy`, ask the user to paste it into the message box with Cmd+V, and check the box before sending.
+ - After posting, open the profile and note the post's URL.
+ - After the X post, remind the user to repost it from their personal account @mifi_no (it's usually not signed in in the built-in browser, so the user does it). Check the post's reposts list (`/status/<id>/retweets`) to confirm.
diff --git a/script/releaseImage.ts b/script/releaseImage.ts
index cc0d5297..25bb65aa 100644
--- a/script/releaseImage.ts
+++ b/script/releaseImage.ts
@@ -1,4 +1,4 @@
-// Generates an image for release announcements, see AGENTS.md "Release announcement"
+// Generates an image for release announcements, see RELEASING.md "Release announcement"
import assert from 'node:assert';
import { mkdir } from 'node:fs/promises';
import { dirname } from 'node:path';
diff --git a/script/storeRelease.ts b/script/storeRelease.ts
index 5962bd70..1259ab22 100644
--- a/script/storeRelease.ts
+++ b/script/storeRelease.ts
@@ -1,4 +1,4 @@
-// Prepares (and with --submit, submits for review) a store release. See CONTRIBUTING.md → "Release in Stores".
+// Prepares (and with --submit, submits for review) a store release. See RELEASING.md → "Release in Stores".
// Without --prepare or --submit, it only reads and prints what it would change.
//
// node script/storeRelease.ts mas <version> [--notes file] [--prepare | --submit]