34 lines
1.2 KiB
Ruby
34 lines
1.2 KiB
Ruby
cask 'openwebstart' do
|
|
version '1.1.0'
|
|
sha256 'aaa7915e57d002d7ea8d85110f3b1debe0332c0877f2daf4d34d5f2b154093b4'
|
|
|
|
# github.com/karakun/OpenWebStart was verified as official when first introduced to the cask
|
|
url "https://github.com/karakun/OpenWebStart/releases/download/v#{version}/OpenWebStart_macos_#{version.dots_to_underscores}.dmg"
|
|
appcast 'https://github.com/karakun/OpenWebStart/releases.atom'
|
|
name 'OpenWebStart'
|
|
homepage 'https://openwebstart.com/'
|
|
|
|
installer script: {
|
|
executable: "#{staged_path}/OpenWebStart Installer.app/Contents/MacOS/JavaApplicationStub",
|
|
args: ['-q'],
|
|
sudo: true,
|
|
print_stderr: false,
|
|
}
|
|
|
|
uninstall_preflight do
|
|
set_ownership '/Applications/OpenWebStart'
|
|
end
|
|
|
|
uninstall script: {
|
|
executable: '/Applications/OpenWebStart/OpenWebStart Uninstaller.app/Contents/MacOS/JavaApplicationStub',
|
|
args: ['-c'],
|
|
sudo: true,
|
|
}
|
|
|
|
zap trash: [
|
|
'~/.config/icedtea-web',
|
|
'~/.cache/icedtea-web',
|
|
'/Applications/OpenWebStart',
|
|
]
|
|
end
|