homebrew fixes to make the etc directory and move to new non-deprecated goreleaser name

This commit is contained in:
Cody Lee 2023-08-03 16:23:53 -05:00
parent fa3a4d7168
commit 4093d3b484
No known key found for this signature in database
1 changed files with 7 additions and 2 deletions

View File

@ -482,7 +482,7 @@ brews:
- unpoller
- unpoller-linux-arm
- unpoller-mac
tap:
repository:
owner: golift
name: homebrew-mugs
branch: master
@ -508,7 +508,12 @@ brews:
url_template: "https://github.com/unpoller/unpoller/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
test: |
assert_match "unpoller v#{version}", shell_output("#{bin}/unpoller -v 2>&1", 2)
install: |
bin.install "unpoller"
etc.mkdir "unpoller"
etc.install "examples/up.conf" => "unpoller/up.conf.example"
post_install: |
etc.install "examples/up.conf" => "unpoller/up.conf"
publishers:
- name: "packagecloud-publisher"