Skip to content

Commit

Permalink
casks: Auto remove quarantine attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx authored Feb 22, 2024
1 parent 95e5868 commit 27dc3b9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Casks/game-porting-toolkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
binary "#{appdir}/Game Porting Toolkit.app/Contents/Resources/wine/bin/wine64-preloader"
binary "#{appdir}/Game Porting Toolkit.app/Contents/Resources/wine/bin/wineserver"

postflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Game Porting Toolkit.app"
end

zap trash: [
"~/.local/share/applications/wine*",
"~/.local/share/icons/hicolor/**/application-x-wine*",
Expand Down
4 changes: 4 additions & 0 deletions Casks/portingkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

app "Porting kit.app"

postflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Porting kit.app"
end

caveats <<~EOS
With #{token}, you can install Windows games and apps on macOS easily
using Wineskin technology!
Expand Down
4 changes: 4 additions & 0 deletions Casks/wine-crossover.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
binary "#{appdir}/Wine Crossover.app/Contents/Resources/wine/bin/winepath"
binary "#{appdir}/Wine Crossover.app/Contents/Resources/wine/bin/wineserver"

postflight do
system "xattr", "-drs", "com.apple.quarantine", "#{appdir}/Wine Crossover.app"
end

caveats <<~EOS
#{token} supports running 32-bit & 64-bit windows binaries.
Expand Down
1 change: 1 addition & 0 deletions Casks/wineskin-devel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# 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
end

Expand Down
1 change: 1 addition & 0 deletions Casks/wineskin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# 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
end

Expand Down

0 comments on commit 27dc3b9

Please sign in to comment.