2016-06-21 15:40:53 +08:00
|
|
|
cask 'keybase' do
|
2017-04-15 18:27:20 +08:00
|
|
|
version '1.0.21-20170413194119,9dea6e1'
|
|
|
|
sha256 'c95ae144b67135f5ad1cbfcd12fed650c34c4d6635dd9568f5043dd69f4ac857'
|
2016-06-21 15:40:53 +08:00
|
|
|
|
2017-01-31 13:58:27 +08:00
|
|
|
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',
|
2017-04-15 18:27:20 +08:00
|
|
|
checkpoint: 'b4a97631cbfdbaed480c2998fa896e3dba6f7b2f2c8ee490992fddbdf4dc876c'
|
2016-06-21 15:40:53 +08:00
|
|
|
name 'Keybase'
|
2016-11-28 15:37:02 +08:00
|
|
|
homepage 'https://keybase.io/'
|
2016-06-21 15:40:53 +08:00
|
|
|
|
2016-08-16 08:52:50 +08:00
|
|
|
auto_updates true
|
|
|
|
|
2016-06-21 15:40:53 +08:00
|
|
|
app 'Keybase.app'
|
2017-02-11 00:40:33 +08:00
|
|
|
|
|
|
|
postflight do
|
2017-02-23 02:34:31 +08:00
|
|
|
system_command "#{appdir}/Keybase.app/Contents/Resources/KeybaseInstaller.app/Contents/MacOS/Keybase",
|
2017-02-11 00:40:33 +08:00
|
|
|
args: ["--app-path=#{appdir}/Keybase.app", '--run-mode=prod', '--timeout=10']
|
|
|
|
end
|
|
|
|
|
|
|
|
uninstall_preflight do
|
|
|
|
if system_command('launchctl', args: ['list']).stdout =~ %r{/^\d+.*keybase.Electron/}
|
|
|
|
system_command 'killall', args: ['-kill', 'Keybase']
|
|
|
|
end
|
|
|
|
system_command "#{appdir}/Keybase.app/Contents/SharedSupport/bin/keybase",
|
|
|
|
args: ['uninstall']
|
|
|
|
end
|
2016-06-21 15:40:53 +08:00
|
|
|
end
|