fix(casks): use postflight_steps and rewrite GoReleaser output on push

GoReleaser writes the quarantine hook as a postflight block on each release.
Homebrew 7 deprecates that block. The new workflow rewrites it to
postflight_steps after every push to main.
This commit is contained in:
2026-10-04 11:07:28 +01:00
parent 41c31ba908
commit 0c7bccd6cc
7 changed files with 52 additions and 24 deletions
+3 -4
View File
@@ -33,10 +33,9 @@ cask "harness-sync" do
binary "harness-sync"
postflight do
if OS.mac?
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{staged_path}/harness-sync"]
postflight_steps do
on_macos do
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/harness-sync"]
end
end