diff --git a/Casks/game-porting-toolkit.rb b/Casks/game-porting-toolkit.rb index 783b96f..063be26 100644 --- a/Casks/game-porting-toolkit.rb +++ b/Casks/game-porting-toolkit.rb @@ -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*", diff --git a/Casks/portingkit.rb b/Casks/portingkit.rb index 32382f5..1051bb2 100644 --- a/Casks/portingkit.rb +++ b/Casks/portingkit.rb @@ -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! diff --git a/Casks/wine-crossover.rb b/Casks/wine-crossover.rb index c184013..0aeb597 100644 --- a/Casks/wine-crossover.rb +++ b/Casks/wine-crossover.rb @@ -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. diff --git a/Casks/wineskin-devel.rb b/Casks/wineskin-devel.rb index 16bcb58..ee2d137 100644 --- a/Casks/wineskin-devel.rb +++ b/Casks/wineskin-devel.rb @@ -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 diff --git a/Casks/wineskin.rb b/Casks/wineskin.rb index 03afa14..f4bb052 100644 --- a/Casks/wineskin.rb +++ b/Casks/wineskin.rb @@ -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