homebrew-cask/Casks/d/discord.rb

31 lines
885 B
Ruby

cask "discord" do
version "0.0.307"
sha256 "141631421b7072d310f01c8e800567716879dbdee4d5587de70feb5a7660f45c"
url "https://dl.discordapp.net/apps/osx/#{version}/Discord.dmg",
verified: "dl.discordapp.net/"
name "Discord"
desc "Voice and text chat software"
homepage "https://discord.com/"
livecheck do
url "https://discord.com/api/download/stable?platform=osx"
strategy :header_match
end
auto_updates true
depends_on macos: ">= :catalina"
app "Discord.app"
zap trash: [
"~/Library/Application Support/discord",
"~/Library/Caches/com.hnc.Discord",
"~/Library/Caches/com.hnc.Discord.ShipIt",
"~/Library/Cookies/com.hnc.Discord.binarycookies",
"~/Library/Preferences/com.hnc.Discord.helper.plist",
"~/Library/Preferences/com.hnc.Discord.plist",
"~/Library/Saved Application State/com.hnc.Discord.savedState",
]
end