fix(casks): use postflight_steps

Homebrew rejects a postflight block with Cask/InstallSteps. The four casks now strip the quarantine attribute through postflight_steps. GoReleaser still generates the old block, so the next release of each project writes it back.
This commit is contained in:
2026-10-02 16:30:13 +01:00
parent 0c9a5806df
commit 3f2b74b7ec
4 changed files with 12 additions and 16 deletions
+3 -4
View File
@@ -33,10 +33,9 @@ cask "lolcathost" do
binary "lolcathost"
postflight do
if OS.mac?
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{staged_path}/lolcathost"]
postflight_steps do
on_macos do
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/lolcathost"]
end
end