diff --git a/.claude/skills/release/SKILL.md b/.claude/skills/release/SKILL.md index 7c4eb5f999..29a37d5c94 100644 --- a/.claude/skills/release/SKILL.md +++ b/.claude/skills/release/SKILL.md @@ -63,4 +63,5 @@ Run `apple/RELEASING.md`: Cutting a beta, or Cutting a stable or patch with its - `apple/scripts/release/tag.sh ` tags and watches the tag's run. Hold merges and pull request pushes around it as Tagging says, since release jobs get no runner priority. - The forward-port goes once the tag's App and Plugins jobs start, not after publishing, so the next beta.1 need not wait for the stable (Forward-port). - Then check the source: `gh api -H 'Accept: application/vnd.github.raw' 'repos/TableProApp/TablePro/contents/appcast.xml?ref=gh-pages' | grep -c 'X.Y.Z<'` prints 2, one item per arch; `gh release view vX.Y.Z --json assets -q '.assets | length'` is 7 plus `python3 apple/scripts/release/registry.py targets | wc -l`. A line whose `apple/scripts/release/feed.py` has no `ARCHES` ships universal: 1 item and 4 plus `python3 apple/scripts/release/registry.py targets | wc -l`. +- After a stable publishes, check the Homebrew cask (`apple/RELEASING.md`, Homebrew). - After an X.Y.0, the `announce` skill in TableProApp/web is next. diff --git a/apple/RELEASING.md b/apple/RELEASING.md index bc1ea39106..31929878b6 100644 --- a/apple/RELEASING.md +++ b/apple/RELEASING.md @@ -123,6 +123,31 @@ gh pr merge --auto --squash - A conflict on a fragment: `git rm` it. On `CHANGELOG.md`: keep both sections, in version order. - Once the release publishes, `python3 apple/scripts/release/notes.py docs X.Y.Z --ref vX.Y.Z --mdx ../tablepro-docs/changelog.mdx` goes into a `docs(changelog): vX.Y.Z` PR in TableProApp/docs, merged by hand once green. +## Homebrew + +- The `tablepro` cask is `Casks/t/tablepro.rb` in Homebrew/homebrew-cask. BrewTestBot bumps its `version` and `sha256` a few hours after a stable publishes. Betas never reach it. +- The bump keeps the DMG name. The cask fetches the universal `TablePro-#{version}.dmg`, which no stable from a line whose `feed.py` has `ARCHES` ships, so the bump stops there until the cask names a DMG per arch. +- Once such a stable publishes, this prints 0 while the change is still needed: + + ```bash + gh api -H 'Accept: application/vnd.github.raw' repos/Homebrew/homebrew-cask/contents/Casks/t/tablepro.rb | grep -c '#{arch}' + gh release view vX.Y.Z --json assets -q '.assets[] | select(.name | endswith(".dmg")) | "\(.name) \(.digest)"' + ``` + +- The change replaces the cask's `version`, `sha256` and `url` lines with these, taking each `sha256` from the second command without its `sha256:` prefix. The rest stays: + + ```ruby + arch arm: "arm64", intel: "x86_64" + + version "X.Y.Z" + sha256 arm: "", + intel: "" + + url "https://github.com/TableProApp/TablePro/releases/download/v#{version}/TablePro-#{version}-#{arch}.dmg" + ``` + +- Edit it in `"$(brew --repository homebrew/cask)"` with `HOMEBREW_NO_INSTALL_FROM_API=1`, run `brew style --fix tablepro`, `brew audit --cask --online --strict --arch=all tablepro` and `brew livecheck --cask tablepro` (prints X.Y.Z), and open a `tablepro X.Y.Z` PR with homebrew-cask's template. The template has its author answer review comments without AI, so the maintainer opens it. Later stables bump on their own, as they did up to 0.81.0. + ## When a run fails Nothing reaches users before the `github-release` job of `release.yml`.