Skip to content

Commit a98e3f6

Browse files
committed
feat(homebrew): add quarantine removal hook to cask
1 parent d1f732d commit a98e3f6

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
@@ -92,6 +92,15 @@ homebrew_casks:
9292
bash: completion/bash/task.bash
9393
zsh: completion/zsh/_task
9494
fish: completion/fish/task.fish
95+
# Binaries are not signed/notarized, so remove the quarantine attribute
96+
# set by Homebrew on downloaded cask artifacts to avoid Gatekeeper blocking
97+
# them. See https://goreleaser.com/customization/homebrew_casks/
98+
hooks:
99+
post:
100+
install: |
101+
if system_command("/usr/bin/xattr", args: ["-h"]).exit_status == 0
102+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/task"]
103+
end
95104
directory: Casks
96105
repository:
97106
owner: go-task

0 commit comments

Comments
 (0)