Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mediaelch.rb
blob2857158dc6a3d176318fc27fcf9c8ec41fb0360b
1 cask "mediaelch" do
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/"
7   name "MediaElch"
8   desc "Media Manager for Kodi"
9   homepage "https://www.kvibes.de/en/mediaelch/"
11   livecheck do
12     url :url
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)
17         next if match.blank?
19         "#{match[1]},#{match[2]},#{match[3]}"
20       end
21     end
22   end
24   depends_on macos: ">= :high_sierra"
26   app "MediaElch.app"
28   zap trash: [
29     "~/Library/Preferences/com.kvibes.MediaElch.plist",
30     "~/Library/Saved Application State/com.kvibes.MediaElch.savedState",
31   ]
33   caveats do
34     requires_rosetta
35   end
36 end