Merge pull request #198803 from Homebrew/bump-wizcli-0.69.0
[Homebrew/homebrew-cask.git] / Casks / l / league-of-legends.rb
blob22a80351a941637b9fb4dcd844b174377fbed20d
1 cask "league-of-legends" do
2   version "1.0"
3   sha256 :no_check
5   url "https://lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.na.zip",
6       verified: "lol.secure.dyn.riotcdn.net/"
7   name "League of Legends"
8   desc "Multiplayer online battle arena game"
9   homepage "https://na.leagueoflegends.com/en-us/"
11   livecheck do
12     url :url
13     strategy :extract_plist
14   end
16   installer manual: "Install League of Legends na.app"
18   uninstall delete: "/Applications/League of Legends.app"
20   zap trash: [
21         "/Users/Shared/Riot Games/Metadata/league_of_legends.live",
22         "/Users/Shared/Riot Games/Metadata/league_of_legends.live.game_patch",
23         "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.riotgames.maccontainer.sfl*",
24         "~/Library/Application Support/Riot Games/Install League of Legends",
25         "~/Library/Application Support/Riot Games/League of Legends",
26         "~/Library/Caches/com.riotgames.LeagueofLegends.LeagueClient",
27         "~/Library/Logs/Riot Games/Install League of Legends na",
28         "~/Library/Preferences/com.riotgames.LeagueofLegends.LeagueClientUxHelper.plist",
29         "~/Library/Saved Application State/com.riotgames.LeagueofLegends.GameClient.savedState",
30         "~/Library/Saved Application State/com.riotgames.LeagueofLegends.LeagueClientUx.savedState",
31       ],
32       rmdir: [
33         "/Users/Shared/Riot Games",
34         "~/Documents/League of Legends",
35         "~/Library/Application Support/Riot Games",
36       ]
37 end