Skip to content

Commit

Permalink
casks: Use system_command instead of system
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx committed Feb 22, 2024
1 parent 27dc3b9 commit 5cf3572
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 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 "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Game Porting Toolkit.app"
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Game Porting Toolkit.app"], sudo: false

Check failure on line 33 in Casks/game-porting-toolkit.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-latest)

Layout/LineLength: Line is too long. [126/118]
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 "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Porting kit.app"
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Porting kit.app"], sudo: false
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 "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wine Crossover.app"
system_command "/usr/bin/xattr", args: ["-drs", "com.apple.quarantine", "#{appdir}/Wine Crossover.app"], sudo: false

Check failure on line 43 in Casks/wine-crossover.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-latest)

Layout/LineLength: Line is too long. [120/118]
end

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

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

Check failure on line 19 in Casks/wineskin-devel.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-latest)

Layout/LineLength: Line is too long. [121/118]
end

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

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

Check failure on line 20 in Casks/wineskin.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-latest)

Layout/LineLength: Line is too long. [121/118]
end

zap trash: [
Expand Down

0 comments on commit 5cf3572

Please sign in to comment.