2 version "2.12.0,2024-10-13,80324653"
3 sha256 "a49e8f12326cc5c7e55ed0b0b6e951fd27cf704ae2ddc3f24cb860af45a7dad4"
5 url "https://github.com/Komet/MediaElch/releases/download/v#{version.csv.first}/MediaElch_macOS_11_or_later_Qt6_#{version.csv.first}_#{version.csv.second}_git-#{version.csv.third}.dmg",
6 verified: "github.com/Komet/MediaElch/"
8 desc "Media Manager for Kodi"
9 homepage "https://www.kvibes.de/en/mediaelch/"
13 regex(/^MediaElch_macOS_.*?[._-]v?(\d+(?:\.\d+)+)_(\d+(?:.\d+)*)_git-(.+?)\.dmg$/i)
14 strategy :github_latest do |json, regex|
15 json["assets"]&.map do |asset|
16 match = asset["name"]&.match(regex)
19 "#{match[1]},#{match[2]},#{match[3]}"
24 depends_on macos: ">= :high_sierra"
29 "~/Library/Preferences/com.kvibes.MediaElch.plist",
30 "~/Library/Saved Application State/com.kvibes.MediaElch.savedState",