cask 'openwebstart' do version '1.1.7' sha256 'eae6a2490be2d015e6d697692ee47364ed15bd238a3780ebfb62a8719e4f3626' # 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