cask "legcord" do version "1.1.5" sha256 "42d5c2f12308944e0e4475c8840a458fcf7859cb5aa28d8d6c73f81319d6a6e2" url "https://github.com/legcord/legcord/releases/download/v#{version}/legcord-#{version}-mac-universal.dmg", verified: "github.com/legcord/legcord/" name "Legcord" desc "Custom Discord client" homepage "https://legcord.app/" livecheck do url "https://legcord.app/latest.json" strategy :json do |json| json["version"] end end depends_on macos: ">= :big_sur" app "legcord.app" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/app.legcord.legcord.sfl*", "~/Library/Application Support/legcord", "~/Library/Preferences/app.legcord.Legcord.plist", "~/Library/Saved Application State/app.legcord.Legcord.savedState", ] end