From 1eb19f4525cb41842d42ca335694e51c9bf33ed9 Mon Sep 17 00:00:00 2001 From: Riley Hilliard Date: Mon, 5 Oct 2026 22:37:22 -0500 Subject: [PATCH] fix(release): emit postflight_steps in the Homebrew cask Homebrew 7 deprecated cask `postflight` blocks and warns on every `brew upgrade`/`cleanup`. GoReleaser renders `hooks.post.install` as a `postflight` block, so the quarantine strip now goes in through `custom_block` as a `postflight_steps` block instead. Also drop `url.verified`, which GoReleaser deprecated after Homebrew did. --- .goreleaser.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b446452..9040041 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -49,15 +49,15 @@ homebrew_casks: - rr homepage: https://github.com/rileyhilliard/rr description: Sync code and run commands on remote machines - url: - verified: github.com/rileyhilliard/rr/ repository: owner: rileyhilliard name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" - hooks: - post: - install: | - if OS.mac? - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/rr"] - end + # Homebrew deprecated `postflight` blocks, which is what `hooks.post.install` + # renders, so the quarantine strip goes in as a `postflight_steps` block. + custom_block: | + postflight_steps do + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "rr"], chdir: ".", writable_paths: ["rr"] + end + end