diff --git a/.goreleaser.yml b/.goreleaser.yml index 56c7630cf..6e8727589 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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