Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wine-crossover: Auto remove quarantine attribute #133

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading