Skip to content

Commit d7d129a

Browse files
fix for homebrew macOS binary quarantine (backport #690) (#696)
Signed-off-by: Adam Martin <adam.martin@ranchergovernment.com> Co-authored-by: Adam Martin <adam.martin@ranchergovernment.com>
1 parent a6f031f commit d7d129a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.goreleaser.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ homebrew_casks:
4545
name: homebrew-tap
4646
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
4747
description: "Hauler: Airgap Swiss Army Knife"
48+
hooks:
49+
post:
50+
install: |
51+
if OS.mac?
52+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/hauler"]
53+
end
4854
4955
dockers_v2:
5056
- id: hauler

0 commit comments

Comments
 (0)