homebrew-cask/Casks/pritunl.rb

27 lines
1.0 KiB
Ruby

cask 'pritunl' do
version '1.0.1461.29'
sha256 '1310a0ee6e17643f111b5fd27023796d4f5bc8e7dae1e8c69bda3b37d5ecd33a'
# github.com/pritunl/pritunl-client-electron was verified as official when first introduced to the cask
url "https://github.com/pritunl/pritunl-client-electron/releases/download/#{version}/Pritunl.pkg.zip"
appcast 'https://github.com/pritunl/pritunl-client-electron/releases.atom',
checkpoint: '62a7e43a16f31b3540d854227e86a5b18f414e13428f0391a18b819ca02bbfc5'
name 'Pritunl OpenVPN Client'
homepage 'https://client.pritunl.com/'
pkg 'Pritunl.pkg'
uninstall pkgutil: 'com.pritunl.pkg.Pritunl',
launchctl: [
'com.pritunl.client',
'com.pritunl.service',
],
signal: ['TERM', 'com.electron.pritunl']
zap delete: '~/Library/Caches/pritunl',
trash: [
'~/Library/Application Support/pritunl',
'~/Library/Preferences/com.electron.pritunl*',
]
end