Skip to content

Commit

Permalink
Revert "casks: Use system_command instead of system"
Browse files Browse the repository at this point in the history
This reverts commit 5cf3572.
  • Loading branch information
Gcenx committed Feb 22, 2024
1 parent 5cf3572 commit 44c6f61
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Casks/game-porting-toolkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
binary "#{appdir}/Game Porting Toolkit.app/Contents/Resources/wine/bin/wineserver"

postflight do
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Game Porting Toolkit.app"], sudo: false
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Game Porting Toolkit.app"
end

zap trash: [
Expand Down
2 changes: 1 addition & 1 deletion Casks/portingkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
app "Porting kit.app"

postflight do
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Porting kit.app"], sudo: false
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Porting kit.app"
end

caveats <<~EOS
Expand Down
2 changes: 1 addition & 1 deletion Casks/wine-crossover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
binary "#{appdir}/Wine Crossover.app/Contents/Resources/wine/bin/wineserver"

postflight do
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Wine Crossover.app"], sudo: false
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wine Crossover.app"
end

caveats <<~EOS
Expand Down
4 changes: 3 additions & 1 deletion Casks/wineskin-devel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

app "Wineskin Winery.app"

# Workaround issue until it's fixed in Winery
# https://github.com/Gcenx/WineskinServer/issues/96
preflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"
system_command "/bin/mkdir", args: ["-p", "/Users/#{ENV.fetch("USER")}/Applications/Wineskin"], sudo: false
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"], sudo: false
end

zap trash: [
Expand Down
4 changes: 3 additions & 1 deletion Casks/wineskin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@

app "Wineskin Winery.app"

# Workaround issue until it's fixed in Winery
# https://github.com/Gcenx/WineskinServer/issues/96
preflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"
system_command "/bin/mkdir", args: ["-p", "/Users/#{ENV.fetch("USER")}/Applications/Wineskin"], sudo: false
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Wineskin Winery.app"], sudo: false
end

zap trash: [
Expand Down

0 comments on commit 44c6f61

Please sign in to comment.