Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / n / now-tv-player.rb
blob85141b99bbc73667c1cfa068a6d5a1003f17c6c6
1 cask "now-tv-player" do
2   version "8.15.0"
3   sha256 "dbc52d496e7f17cc0f8d20aef8c2fe447934217c0dec1e750b8058ce1bbbb1b8"
5   url "https://web.static.nowtv.com/watch/player/nowtv/gb/#{version}/NOWTVPlayer-Mac.dmg"
6   name "NOW TV Player"
7   desc "Video streaming service player"
8   homepage "https://www.nowtv.com/"
10   livecheck do
11     url "https://web.static.nowtv.com/watch/player/nowtv/gb/latest/update.json"
12     strategy :json do |json|
13       json.dig("platforms", "darwin", "version")
14     end
15   end
17   app "NOW TV Player.app"
19   zap trash: [
20     "~/Library/Application Support/NOW TV Player",
21     "~/Library/Logs/NOW TV Player",
22     "~/Library/Preferences/com.electron.now-tv-player.helper.plist",
23     "~/Library/Preferences/com.electron.now-tv-player.plist",
24     "~/Library/Saved Application State/com.electron.now-tv-player.savedState",
25   ]
27   caveats do
28     requires_rosetta
29   end
30 end