Skip to content

fix(cask): use postflight_steps instead of deprecated postflight block - #4

Merged
radiosilence merged 1 commit into
mainfrom
fix/cask-postflight-steps
Sep 24, 2026
Merged

radiosilence merged 1 commit into
mainfrom
fix/cask-postflight-steps

Conversation

@radiosilence

Copy link
Copy Markdown
Owner

Updates the cask template in the release workflow. brew update warns "Calling postflight is deprecated! Use postflight_steps instead." for this cask. The Gatekeeper quarantine strip becomes a run step; {{appdir}} is the install-steps template token for the Applications directory, and writable_paths scopes the sandboxed step to the app bundle it modifies.

Two pre-existing drifts between the template and the tap are fixed alongside, since the next release would otherwise overwrite the tap with them:

  • depends_on macos: ">= :sonoma" becomes :sonoma, matching the hand-corrected tap.
  • zap trash takes a single string rather than a one-element array, which brew style rejects.

Rendering the template with the v1.3.2 version and SHA produces a file identical to the tap fix in radiosilence/homebrew-browser-schedule. The same stanza was verified with brew reinstall on koan-app; brew style passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_014kqPHGM4M457LjqYcPSsoE

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014kqPHGM4M457LjqYcPSsoE
@radiosilence
radiosilence merged commit 90450c3 into main Sep 24, 2026
1 of 2 checks passed
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