36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
cask 'wine-stable' do
|
|
version '3.0'
|
|
sha256 'ede25ec1c3d79546bc9a7c43c680df9b03922d70690b9432e44e129ea31f7eaa'
|
|
|
|
url "https://dl.winehq.org/wine-builds/macosx/pool/winehq-stable-#{version}.pkg"
|
|
appcast 'https://dl.winehq.org/wine-builds/macosx/download.html',
|
|
checkpoint: '1bbcf6a2c1866b5ef50d6be69c1a18a48a49f1d6820cee0104ebc69f59384da6'
|
|
name 'WineHQ-stable'
|
|
homepage 'https://wiki.winehq.org/MacOS'
|
|
|
|
depends_on cask: 'xquartz'
|
|
|
|
pkg "winehq-stable-#{version}.pkg",
|
|
choices: [
|
|
{
|
|
'choiceIdentifier' => 'choice3',
|
|
'choiceAttribute' => 'selected',
|
|
'attributeSetting' => 1,
|
|
},
|
|
]
|
|
|
|
uninstall pkgutil: [
|
|
'org.winehq.wine-stable',
|
|
'org.winehq.wine-stable-deps',
|
|
'org.winehq.wine-stable-deps64',
|
|
'org.winehq.wine-stable32',
|
|
'org.winehq.wine-stable64',
|
|
],
|
|
delete: '/Applications/Wine stable.app'
|
|
|
|
caveats <<~EOS
|
|
#{token} installs support for running 64 bit applications in Wine, which is considered experimental.
|
|
If you do not want 64 bit support, you should download and install the #{token} package manually.
|
|
EOS
|
|
end
|