Skip to content

Commit a173281

Browse files
committed
feat(homebrew): add post-install hook to strip quarantine attribute from unsigned binaries
1 parent 686815f commit a173281

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.goreleaser.yml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ homebrew_casks:
4343
directory: Casks
4444
binaries:
4545
- jwt-cli
46+
# Unsigned binaries are quarantined by macOS Gatekeeper; strip the attribute.
47+
hooks:
48+
post:
49+
install: |
50+
if OS.mac?
51+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}"]
52+
end
4653
commit_author:
4754
name: sgaunet
4855
email: 1552102+sgaunet@users.noreply.github.com

0 commit comments

Comments
 (0)