cask 'ivpn' do version '2.11.8' sha256 'd92ad6dea6715ab35bed21d2f530646278471c8adfb4497514c1e1daf6cc2b31' url "https://cdn.ivpn.net/releases/osx/IVPN-#{version}.dmg" appcast 'https://www.ivpn.net/setup/mac-changelog.html' name 'IVPN' homepage 'https://www.ivpn.net/apps-macos' auto_updates true app 'IVPN.app' uninstall_preflight do set_ownership "#{appdir}/IVPN.app" end uninstall delete: [ '/Library/Application Support/IVPN', '/Library/PrivilegedHelperTools/net.ivpn.client.Helper', ], launchctl: 'net.ivpn.client.Helper', quit: 'net.ivpn.client.IVPN' zap trash: '~/Library/Preferences/net.ivpn.client.IVPN.plist' end