2 arch arm: "arm64", intel: "x86_64"
5 sha256 arm: "9b21477b444dddeb309fcfddbcaeeb109d9fa430c04d7a932d3a2c4c35603efc",
6 intel: "f8e93515c6a1b8918ee3dc9ec87c3ffcefa70b95f4cf0673c1a4e894aca0d85d"
8 url "https://mirrors.kodi.tv/releases/osx/#{arch}/kodi-#{version}-#{arch}.dmg"
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.).
16 url "https://kodi.tv/download/macos/"
17 regex(/href=.*?kodi[._-]v?(\d+(?:\.\d+)+[._-][^-]+?)[._-][^-]+?\.dmg/i)
20 depends_on macos: ">= :high_sierra"
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",