From 57977ea2eb68d1e2a6a3789ed52381945487ec77 Mon Sep 17 00:00:00 2001 From: zakoverflow Date: Wed, 18 Nov 2026 10:36:37 -0600 Subject: [PATCH] goreleaser: use homebrew_casks hooks.post.install_steps Homebrew 7 deprecates cask postflight in favor of postflight_steps. GoReleaser v2.19 added hooks.install_steps; the raw Ruby install hook is deprecated. Same macOS-only quarantine strip, declarative form. --- .goreleaser.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index ffeac85..4b5b23a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -145,8 +145,8 @@ homebrew_casks: license: MIT hooks: post: - install: | - if OS.mac? - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/notecard"] - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/notehub"] + install_steps: | + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/notecard"] + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/notehub"] end