cask "league-of-legends" do version "1.0" sha256 :no_check url "https://lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.na.zip", verified: "lol.secure.dyn.riotcdn.net/" name "League of Legends" desc "Multiplayer online battle arena game" homepage "https://na.leagueoflegends.com/en-us/" livecheck do url :url strategy :extract_plist end installer manual: "Install League of Legends na.app" uninstall delete: "/Applications/League of Legends.app" zap trash: [ "/Users/Shared/Riot Games/Metadata/league_of_legends.live", "/Users/Shared/Riot Games/Metadata/league_of_legends.live.game_patch", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.riotgames.maccontainer.sfl*", "~/Library/Application Support/Riot Games/Install League of Legends", "~/Library/Application Support/Riot Games/League of Legends", "~/Library/Caches/com.riotgames.LeagueofLegends.LeagueClient", "~/Library/Logs/Riot Games/Install League of Legends na", "~/Library/Preferences/com.riotgames.LeagueofLegends.LeagueClientUxHelper.plist", "~/Library/Saved Application State/com.riotgames.LeagueofLegends.GameClient.savedState", "~/Library/Saved Application State/com.riotgames.LeagueofLegends.LeagueClientUx.savedState", ], rmdir: [ "/Users/Shared/Riot Games", "~/Documents/League of Legends", "~/Library/Application Support/Riot Games", ] end