Skip to content

Commit 32889a4

Browse files
authored
chore: migrate goreleaser brews to homebrew_casks (#1)
1 parent 64a0be3 commit 32889a4

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

.goreleaser.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,20 @@ changelog:
2828
- "^test:"
2929
- "^chore:"
3030

31-
brews:
31+
homebrew_casks:
3232
- repository:
3333
owner: lu-zhengda
3434
name: homebrew-tap
3535
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
36-
directory: Formula
37-
homepage: "https://github.com/zhengda-lu/lanchr"
36+
directory: Casks
37+
homepage: "https://github.com/lu-zhengda/lanchr"
3838
description: "A macOS launch agent/daemon manager"
3939
license: "MIT"
40-
install: |
41-
bin.install "lanchr"
42-
test: |
43-
system "#{bin}/lanchr", "--version"
40+
binaries:
41+
- lanchr
42+
hooks:
43+
post:
44+
install: |
45+
if OS.mac?
46+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/lanchr"]
47+
end

0 commit comments

Comments
 (0)