mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-10-17 01:07:49 +00:00
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:
@@ -33,10 +33,9 @@ cask "harness-sync" do
|
|||||||
|
|
||||||
binary "harness-sync"
|
binary "harness-sync"
|
||||||
|
|
||||||
postflight do
|
postflight_steps do
|
||||||
if OS.mac?
|
on_macos do
|
||||||
system_command "/usr/bin/xattr",
|
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/harness-sync"]
|
||||||
args: ["-dr", "com.apple.quarantine", "#{staged_path}/harness-sync"]
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+3
-4
@@ -33,10 +33,9 @@ cask "kportal" do
|
|||||||
|
|
||||||
binary "kportal"
|
binary "kportal"
|
||||||
|
|
||||||
postflight do
|
postflight_steps do
|
||||||
if OS.mac?
|
on_macos do
|
||||||
system_command "/usr/bin/xattr",
|
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/kportal"]
|
||||||
args: ["-dr", "com.apple.quarantine", "#{staged_path}/kportal"]
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+3
-4
@@ -33,10 +33,9 @@ cask "lolcathost" do
|
|||||||
|
|
||||||
binary "lolcathost"
|
binary "lolcathost"
|
||||||
|
|
||||||
postflight do
|
postflight_steps do
|
||||||
if OS.mac?
|
on_macos do
|
||||||
system_command "/usr/bin/xattr",
|
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/lolcathost"]
|
||||||
args: ["-dr", "com.apple.quarantine", "#{staged_path}/lolcathost"]
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -33,10 +33,9 @@ cask "semver-generator" do
|
|||||||
|
|
||||||
binary "semver-generator"
|
binary "semver-generator"
|
||||||
|
|
||||||
postflight do
|
postflight_steps do
|
||||||
if OS.mac?
|
on_macos do
|
||||||
system_command "/usr/bin/xattr",
|
run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/semver-generator"]
|
||||||
args: ["-dr", "com.apple.quarantine", "#{staged_path}/semver-generator"]
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user