44 lines
1.4 KiB
Ruby
44 lines
1.4 KiB
Ruby
cask "keybase" do
|
|
version "5.6.0-20210122231813,f50a180af7"
|
|
sha256 "02e0fdf6d353905b694aa60f1df72120a9736247af5437d6ccf9a92070d079ae"
|
|
|
|
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"
|
|
name "Keybase"
|
|
desc "End-to-end encryption software"
|
|
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",
|
|
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
|