chore: publish the homebrew package as a cask (#32874)
This commit is contained in:
parent
b5907192f5
commit
e772d8413a
1 changed files with 10 additions and 11 deletions
|
|
@ -126,7 +126,7 @@ nfpms:
|
|||
preremove: ./packaging/scripts/preremove.sh
|
||||
postremove: ./packaging/scripts/postremove.sh
|
||||
|
||||
brews:
|
||||
homebrew_casks:
|
||||
- skip_upload: '{{ if eq (envOrDefault "MAKE_LATEST" "true") "true" }}false{{ else }}true{{ end }}'
|
||||
repository:
|
||||
owner: evcc-io
|
||||
|
|
@ -134,15 +134,14 @@ brews:
|
|||
commit_author:
|
||||
name: andig
|
||||
email: info@evcc.io
|
||||
directory: Formula
|
||||
homepage: "https://evcc.io"
|
||||
description: "Sonne tanken ☀️🚘"
|
||||
license: "MIT"
|
||||
test: |
|
||||
system "#{bin}/evcc --version"
|
||||
service: |
|
||||
run [opt_bin/"evcc"]
|
||||
working_dir HOMEBREW_PREFIX
|
||||
keep_alive true
|
||||
log_path var/"log/evcc.log"
|
||||
error_log_path var/"log/evcc.log"
|
||||
binaries:
|
||||
- evcc
|
||||
hooks:
|
||||
post:
|
||||
# the binaries are not notarized, so gatekeeper would refuse to run them
|
||||
install: |
|
||||
if OS.mac?
|
||||
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/evcc"]
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue