Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / k / kodi.rb
blob481fe9d73721ab8cd5dd27ffbff67351dd24a34a
1 cask "kodi" do
2   arch arm: "arm64", intel: "x86_64"
4   version "21.1-Omega"
5   sha256 arm:   "9b21477b444dddeb309fcfddbcaeeb109d9fa430c04d7a932d3a2c4c35603efc",
6          intel: "f8e93515c6a1b8918ee3dc9ec87c3ffcefa70b95f4cf0673c1a4e894aca0d85d"
8   url "https://mirrors.kodi.tv/releases/osx/#{arch}/kodi-#{version}-#{arch}.dmg"
9   name "Kodi"
10   desc "Free and open-source media player"
11   homepage "https://kodi.tv/"
13   # The regex below assumes that the release name will always be one word
14   # (e.g., Leia, Matrix, Nexus, Omega, etc.).
15   livecheck do
16     url "https://kodi.tv/download/macos/"
17     regex(/href=.*?kodi[._-]v?(\d+(?:\.\d+)+[._-][^-]+?)[._-][^-]+?\.dmg/i)
18   end
20   depends_on macos: ">= :high_sierra"
22   app "Kodi.app"
24   zap trash: [
25     "~/.kodi",
26     "~/Library/Application Support/Kodi",
27     "~/Library/Logs/kodi.log",
28     "~/Library/Logs/kodi.old.log",
29     "~/Library/Preferences/org.xbmc.kodi.plist",
30     "~/Library/Saved Application State/org.xbmc.kodi.savedState",
31   ]
32 end