cask 'tunnelblick-beta' do version '3.7.5beta04,4970' sha256 '0ac4a95ccd66622f5e53907ca4ac71b012af46efbf3ca10ed6bd34438c1bd131' # github.com/Tunnelblick/Tunnelblick/releases/download was verified as official when first introduced to the cask url "https://github.com/Tunnelblick/Tunnelblick/releases/download/v#{version.before_comma}/Tunnelblick_#{version.before_comma}_build_#{version.after_comma}.dmg" appcast 'https://github.com/Tunnelblick/Tunnelblick/releases.atom', checkpoint: '3a0425f39e2aefa8d0b4112afc3a716acca2aefc96c70480d120c7f105c60efb' name 'Tunnelblick' homepage 'https://www.tunnelblick.net/' auto_updates true app 'Tunnelblick.app' uninstall_preflight do set_ownership "#{appdir}/Tunnelblick.app" end uninstall launchctl: [ 'net.tunnelblick.tunnelblick.LaunchAtLogin', 'net.tunnelblick.tunnelblick.tunnelblickd', ], quit: 'net.tunnelblick.tunnelblick' zap trash: [ '/Library/Application Support/Tunnelblick', '~/Library/Application Support/Tunnelblick', '~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/net.tunnelblick.tunnelblick.help*', '~/Library/Caches/net.tunnelblick.tunnelblick', '~/Library/Preferences/net.tunnelblick.tunnelblick.plist', ] caveats <<~EOS For security reasons, #{token} must be installed to /Applications, and will request to be moved at launch. EOS end