fix(release): use postflight_steps for cask quarantine hook (#3084)

This commit is contained in:
Vlad Babayan 2026-11-01 16:59:10 +04:00 committed by GitHub
parent 4c58432b68
commit f4120c8023
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: