Skip to content

Commit c62f00d

Browse files
artparclaude
andcommitted
Strip quarantine attribute in homebrew cask post-install hook
Unsigned binaries get blocked by macOS Gatekeeper. The post-install hook runs xattr -dr to remove the quarantine flag automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 986be9c commit c62f00d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ homebrew_casks:
4949
name: homebrew-tap
5050
homepage: https://github.com/daptin/daptin-cli
5151
description: CLI client for Daptin API server
52+
hooks:
53+
post:
54+
install: |
55+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/daptin-cli"]
5256
5357
scoops:
5458
- repository:

0 commit comments

Comments
 (0)