From 5b916421077ec6ff8fa8c6cdef80ab1088454669 Mon Sep 17 00:00:00 2001 From: Jason Chance Date: Tue, 3 Nov 2026 00:15:05 -0500 Subject: [PATCH] Generate the cask's quarantine hook as postflight_steps Homebrew 7.0.12 warns that the cask's Ruby `postflight` block is deprecated. GoReleaser 2.19 (which the release workflow's `~> v2` already picks up) adds `install_steps`, which renders the declarative `postflight_steps` stanza; `{{ .StagedPath }}` becomes Homebrew's install-time `{{staged_path}}` token. Also add the trailing slash `brew style` wants on the homepage. Co-Authored-By: Claude Opus 5.5 --- .goreleaser.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ca8b11b..b6ed821 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -55,7 +55,7 @@ release: homebrew_casks: - name: pingstack binaries: [pingstack] - homepage: https://pingstack.io + homepage: https://pingstack.io/ description: Report scheduled jobs to a Pingstack heartbeat check license: MIT repository: @@ -69,7 +69,7 @@ homebrew_casks: # sets on downloads; otherwise Gatekeeper blocks the first run. hooks: post: - install: | - if OS.mac? - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/pingstack"] + install_steps: | + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/pingstack"] end