Skip to content

Commit 7e94302

Browse files
committed
chore: migrate from deprecated brews to homebrew_casks
- Replace brews section with homebrew_casks (deprecated since v2.10) - Add xattr quarantine removal hook for unsigned macOS binaries - Cask will be placed in Casks/ directory (Homebrew standard) - Formula name stays cli-t, binary is clitest
1 parent 4c84884 commit 7e94302

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.goreleaser.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,23 @@ archives:
1818
checksum:
1919
name_template: checksums.txt
2020

21-
brews:
22-
- repository:
21+
homebrew_casks:
22+
- name: cli-t
23+
binaries:
24+
- clitest
25+
repository:
2326
owner: sleipi
2427
name: homebrew-tap
2528
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
26-
directory: Formula
2729
homepage: https://github.com/sleipi/cli-t
2830
description: "Declarative CLI testing tool"
29-
license: MIT
30-
install: |
31-
bin.install "clitest"
32-
test: |
33-
assert_match version.to_s, shell_output("#{bin}/clitest --version")
3431
caveats: "CLITest installed! Run 'clitest' to start."
32+
hooks:
33+
post:
34+
install: |
35+
if OS.mac?
36+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/clitest"]
37+
end
3538
3639
release:
3740
prerelease: auto

0 commit comments

Comments
 (0)