From 8adba1faf6f0754839d43838ff3d28f203c98838 Mon Sep 17 00:00:00 2001 From: Vlad Babayan Date: Wed, 28 Oct 2026 15:22:04 +0400 Subject: [PATCH] fix: use postflight_steps for cask quarantine hook --- .goreleaser.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 39cc7d4daa..16f1283e8e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -117,9 +117,9 @@ homebrew_casks: # them. See https://goreleaser.com/customization/homebrew_casks/ hooks: post: - install: | - if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0 - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/task"] + install_steps: | + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ .StagedPath }}/task"] end directory: Casks repository: