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
23 changes: 14 additions & 9 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,17 @@ homebrew_casks:
bash: completions/lstk.bash
zsh: completions/lstk.zsh
fish: completions/lstk.fish
hooks:
post:
install: |
if OS.mac?
# The whole staged dir, not only lstk: the bundled extensions binary
# sits next to it and would otherwise be blocked by Gatekeeper on its
# first run.
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}"]
end
# hooks.post.install emits Homebrew's deprecated `postflight`; the
# replacement arrives as hooks.post.install_steps in GoReleaser v2.19
# (goreleaser/goreleaser#6873). Until then custom_block writes the stanza,
# escaping `{{staged_path}}` past GoReleaser's template pass. It renders
# first in the cask, so `brew style` reports stanza-order offences.
custom_block: |
postflight_steps do
on_macos do
# The whole staged dir, not only lstk: the bundled extensions binary
Comment thread
carillan81 marked this conversation as resolved.
# sits next to it and would otherwise be blocked by Gatekeeper on its
# first run.
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ "{{staged_path}}" }}"]
end
end
Loading