mirror of
https://github.com/lukaszraczylo/homebrew-taps.git
synced 2026-10-12 00:45:10 +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"
|
||||
|
||||
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
@@ -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
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user