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 "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
+3 -4
View File
@@ -33,10 +33,9 @@ cask "kportal" do
binary "kportal"
postflight do
if OS.mac?
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{staged_path}/kportal"]
postflight_steps do
on_macos do
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/kportal"]
end
end
+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
+3 -4
View File
@@ -33,10 +33,9 @@ cask "semver-generator" do
binary "semver-generator"
postflight do
if OS.mac?
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{staged_path}/semver-generator"]
postflight_steps do
on_macos do
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/semver-generator"]
end
end