cask "legcord" do version "1.0.4" sha256 "24897bb7e6afe5e128aab07f8e99b8eb7e46c916ed3b6540ddf38546fceaf049" 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