chore: publish the homebrew package as a cask (#32874)

This commit is contained in:
andig 2026-08-16 11:10:03 +02:00 • committed by GitHub
parent b5907192f5
commit e772d8413a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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