Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ homebrew_casks:
name: goreleaser-bot
email: bot@goreleaser.com
# Binário não assinado: remove o quarantine xattr pro Gatekeeper não bloquear.
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/lk"]
end
# hooks.post.install still writes the deprecated `postflight` (goreleaser/goreleaser#6870), hence custom_block.
# The whole cask passes through the template engine, so Homebrew's {{staged_path}} token must be escaped.
custom_block: |
postflight_steps do
on_macos do
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ "{{staged_path}}" }}/lk"], must_succeed: false
end
end

release:
prerelease: auto
Loading