47 lines
1.7 KiB
Ruby
47 lines
1.7 KiB
Ruby
cask 'keybase' do
|
|
version '1.0.31-20170921232402,71e03df16'
|
|
sha256 'a357c71ebab76c7c977f1dfd81f922e4830ada248e4828c03dacdf3aa16246b5'
|
|
|
|
url "https://prerelease.keybase.io/darwin/Keybase-#{version.before_comma}%2B#{version.after_comma}.dmg"
|
|
appcast 'https://prerelease.keybase.io/update-darwin-prod-v2.json',
|
|
checkpoint: '2371f8f3e840b7b92c70faff448bfbf13888c0b9866e337715aa176d0383a72e'
|
|
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 delete: [
|
|
'~/Library/Caches/Keybase',
|
|
'~/Library/Group Containers/keybase',
|
|
'~/Library/Logs/Keybase*',
|
|
'~/Library/Logs/keybase*',
|
|
'/Library/Logs/keybase*',
|
|
],
|
|
trash: [
|
|
'~/Library/Application Support/Keybase',
|
|
'~/Library/Preferences/keybase*',
|
|
],
|
|
rmdir: '/keybase'
|
|
end
|