homebrew-cask/Casks/openwebstart.rb

34 lines
1.2 KiB
Ruby

cask 'openwebstart' do
version '1.1.8'
sha256 'f36af59cc9229e90a71dd6940ef14416824e65e4214ae7b61a705cc11023d23c'
# 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