Skip to content

Commit 1cb05b0

Browse files
committed
fix: migrate from brews to homebrew_casks with unquarantine hook
1 parent bae981e commit 1cb05b0

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

.goreleaser.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,28 @@ scoops:
7676
license: "MIT"
7777
skip_upload: false
7878

79-
brews:
79+
homebrew_casks:
8080
- ids:
8181
- versionless
8282
repository:
8383
owner: obay
8484
name: homebrew-tap
85+
name: hsctl
8586
homepage: "https://github.com/obay/hsctl"
8687
description: "A CLI tool for managing HubSpot contacts"
8788
license: "MIT"
88-
install: |
89-
bin.install "hsctl"
89+
url:
90+
verified: github.com/obay/hsctl
91+
binary: hsctl
92+
# If the binary isn't signed/notarized, unquarantine it so users don't get blocked
93+
hooks:
94+
post:
95+
install: |
96+
if OS.mac?
97+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/hsctl"], sudo: false
98+
end
9099
test: |
91-
system "#{bin}/hsctl --version"
100+
system "#{appdir}/bin/hsctl --version"
92101
93102
nfpms:
94103
- id: packages

0 commit comments

Comments
 (0)