Skip to content

Commit 457dce3

Browse files
committed
feat(homebrew): add quarantine removal hook to cask
1 parent 28cc2d4 commit 457dce3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.goreleaser.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ homebrew_casks:
9090
bash: completion/bash/task.bash
9191
zsh: completion/zsh/_task
9292
fish: completion/fish/task.fish
93+
# Binaries are not signed/notarized, so remove the quarantine attribute
94+
# set by Homebrew on downloaded cask artifacts to avoid Gatekeeper blocking
95+
# them. See https://goreleaser.com/customization/homebrew_casks/
96+
hooks:
97+
post:
98+
install: |
99+
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
100+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/task"]
101+
end
93102
directory: Casks
94103
repository:
95104
owner: go-task

0 commit comments

Comments
 (0)