homebrew-cask/Casks/keybase.rb

45 lines
1.6 KiB
Ruby

cask 'keybase' do
version '1.0.38-20171220205307,f5d54bc77'
sha256 'b6797d0dab213f592490874772f4656c63c1fbe2c5fa0a690387ae516fe03d49'
url "https://prerelease.keybase.io/darwin-updates/Keybase-#{version.before_comma}%2B#{version.after_comma}.zip"
appcast 'https://prerelease.keybase.io/update-darwin-prod-v2.json',
checkpoint: '92e7ca4b073a579f0560c502843e66c2f1a1b68dbb887c0e5d38e61f085d2bad'
name 'Keybase'
homepage 'https://keybase.io/'
auto_updates true
app 'Keybase.app'
postflight do
system_command "#{appdir}/Keybase.app/Contents/SharedSupport/bin/keybase",
args: ['install-auto']
end
uninstall delete: '/Library/PrivilegedHelperTools/keybase.Helper',
launchctl: 'keybase.Helper',
login_item: 'Keybase',
signal: [
['TERM', 'keybase.Electron'],
['TERM', 'keybase.ElectronHelper'],
['KILL', 'keybase.Electron'],
['KILL', 'keybase.ElectronHelper'],
],
script: {
executable: "#{appdir}/Keybase.app/Contents/SharedSupport/bin/keybase",
args: ['uninstall'],
}
zap trash: [
'~/Library/Application Support/Keybase',
'~/Library/Caches/Keybase',
'~/Library/Group Containers/keybase',
'~/Library/Logs/Keybase*',
'~/Library/Logs/keybase*',
'~/Library/Preferences/keybase*',
'/Library/Logs/keybase*',
],
rmdir: '/keybase'
end