Skip to content

Install: a Homebrew cask in dinooo13/homebrew-tap, bumped by the Release workflow - #115

Merged
dinooo13 merged 3 commits into
mainfrom
t3/homebrew-cask
Nov 7, 2026
Merged

dinooo13 merged 3 commits into
mainfrom
t3/homebrew-cask

Conversation

@dinooo13

@dinooo13 dinooo13 commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

Refs #112. This PR does not close it: two items on the "Done when" list can only be checked once the tap exists and a release has run.

What changes

  • scripts/pladder.rb is the tap's Casks/pladder.rb with @VERSION@ and @SHA256@ placeholders: the GitHub release URL, depends_on arch: :arm64, depends_on macos: :tahoe (Homebrew's style check rewrites ">= :tahoe" to this, and it means the same thing), app "Pladder.app", a livecheck on the latest GitHub release, uninstall quit: by bundle ID (on brew upgrade Homebrew quits Pladder, replaces it and opens it again), and a zap stanza.
  • scripts/cask.sh <version> [<sha256>] prints the cask. If no SHA-256 is given, it reads it from the release's Pladder.dmg.sha256.
  • release.yml: a new step, Bump the Homebrew cask, after Publish. It writes the cask and commits it to dinooo13/homebrew-tap with one gh api PUT to the contents API, so nothing is cloned and no git credentials are configured. It uses HOMEBREW_TAP_TOKEN, a release environment secret. The step is skipped for drafts, because a draft's DMG is not public yet. It has continue-on-error, so a failed bump shows as a failed step but the run stays green: the release is already out. It is rebased onto the Sparkle release changes (In-app updates with Sparkle, automatic checks opt-in #111) and comes after the Publish step that uploads appcast.xml.
  • Docs: INSTALL.md gains the brew line under Download, brew upgrade under Updating, and brew uninstall [--zap] under Uninstalling. It adds the secret to the table and a new "Homebrew" section covering the tap, the bump, bumping by hand, the token's scope, and auditing a change in a throwaway local tap. The README gives the brew line next to the DMG. CLAUDE.md gets the Distribution decision and the command.
  • Site: one more .release line under the closing Download button, "With Homebrew: brew install --cask dinooo13/tap/pladder", in the mono font, muted, with no coral. llms.txt gets the same line. No version appears, so the site never goes stale, and check-site-numbers.sh passes. I checked it at 1280 px light and 375 px dark: the command wraps at a space, with no horizontal scroll.

Why the cask's source is in this repository

Cask changes get reviewed here, and the tap changes only when there is a release.

No auto_updates true

Sparkle has now merged, but the cask still leaves this line out. auto_updates true makes brew upgrade skip the app unless --greedy, and Pladder's automatic checks are off by default (CLAUDE.md, "Updates"). So most copies installed with Homebrew would never be updated. Without the line, a copy that Sparkle already updated gets the same version installed once more by the next brew upgrade. That costs a download and nothing else. If automatic checks ever become the default, the line can go into scripts/pladder.rb.

zap

These are the paths I found on a Mac running Pladder:

  • ~/Library/Application Support/Pladder (settings, dictionary, S1-mini files)
  • ~/Library/Caches/de.dinooo13.pladder
  • ~/Library/Preferences/de.dinooo13.pladder.plist
  • ~/Library/HTTPStorages/de.dinooo13.pladder (for Sparkle's requests)
  • the two speech-model folders Pladder downloads: FluidAudio/Models/parakeet-ultra and parakeet-tdt-0.6b-v3

It also has rmdir on ~/Library/Application Support/FluidAudio, which Homebrew removes only if it is empty, so models another app put there stay.

Checks

  • brew style and brew audit --cask --strict --online pass on the cask rendered for 0.1.2, in a throwaway local tap (Homebrew 7.0.6). --new fails only on the notability bar of the main Homebrew repository, which is out of scope.
  • spctl accepts the 0.1.2 DMG that Homebrew downloaded ("Notarized Developer ID"), and stapler validate passes.
  • brew livecheck finds 0.1.2.
  • shellcheck, actionlint, check-site-numbers.sh and check-doc-pointers.sh pass.
  • Not run here: brew install, brew uninstall --zap and brew upgrade. They would replace or quit the copy in use and delete the live settings. They can be run once the tap exists, on a Mac or account that isn't dictating.

Before merging

dinooo13/homebrew-tap exists now, with a README and no cask yet. The bump step creates Casks/pladder.rb when it is missing, so 0.2.0, the first release after this merge, is the first version on Homebrew.

  1. Create a fine-grained token with access to dinooo13/homebrew-tap only and Contents: Read and write, and store it as HOMEBREW_TAP_TOKEN in the release environment. Without it, the 0.2.0 bump fails and has to be done by hand (INSTALL.md, "Homebrew").
  2. After 0.2.0, run brew install --cask dinooo13/tap/pladder on a Mac or account that isn't dictating, and check brew uninstall --zap.

Between this merge and the 0.2.0 release, the site and the README already name the brew command, but there is no cask yet for it to install.

🤖 Generated with Claude Code

…ase workflow

scripts/pladder.rb is the tap's Casks/pladder.rb without its version and
SHA-256, and scripts/cask.sh fills them in. After the publish, release.yml
commits the new cask to the tap through the contents API with
HOMEBREW_TAP_TOKEN, a release environment secret; a draft is skipped and a
failed bump leaves the run green. INSTALL.md, the README, the site's closing
call and llms.txt name the brew command.

The cask has no auto_updates: with it brew upgrade skips the app, and
Pladder checks for updates by itself only when the user turns that on.

Refs #112

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dinooo13 and others added 2 commits November 7, 2026 01:27
The tap starts with a README only, so that 0.2.0 is the first release on
Homebrew; the bump replaces the file when it exists and creates it when not.

Refs #112

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #112

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dinooo13
dinooo13 merged commit 2e3c679 into main Nov 7, 2026
4 checks passed
@dinooo13
dinooo13 deleted the t3/homebrew-cask branch November 7, 2026 00:32
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