41 lines
1.6 KiB
Ruby
41 lines
1.6 KiB
Ruby
cask 'tunnelblick' do
|
|
version '3.7.4a,4920'
|
|
sha256 '139199d10bc125806d3686305b033da4c3dd6b7905b3bfefcaf8fc13ae5a1689'
|
|
|
|
# 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: 'c9a34948008a7abf8f21434a36aa3b90e0b8e5735a3f2fe7cb94f08fab3e5470'
|
|
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 delete: [
|
|
'~/Library/Caches/com.apple.helpd/SDMHelpData/Other/English/HelpSDMIndexFile/net.tunnelblick.tunnelblick.help*',
|
|
'~/Library/Caches/net.tunnelblick.tunnelblick',
|
|
],
|
|
trash: [
|
|
'/Library/Application Support/Tunnelblick',
|
|
'~/Library/Application Support/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
|