Merge pull request #194004 from Homebrew/bump-binance-1.54.4
[Homebrew/homebrew-cask.git] / Casks / m / mediainfo.rb
blob477f319d2bf4fc509c38f6f041ec3035e555da62
1 cask "mediainfo" do
2   version "24.11"
3   sha256 "65ae00f87a594215193b064123ef65c7ead1e4115336582465f74360f6b67d06"
5   url "https://mediaarea.net/download/binary/mediainfo-gui/#{version}/MediaInfo_GUI_#{version}_Mac.dmg"
6   name "MediaInfo"
7   desc "Display technical and tag data for video and audio files"
8   homepage "https://mediaarea.net/en/MediaInfo"
10   # We check the first-party download page, as the Sparkle feed has contained
11   # outdated versions or ones that are no longer available.
12   livecheck do
13     url "https://mediaarea.net/en/MediaInfo/Download/Mac_OS"
14     regex(/href=.*?MediaInfo[._-]GUI[._-]v?(\d+(?:\.\d+)+)(?:[._-]Mac)?\.dmg/i)
15   end
17   depends_on macos: ">= :high_sierra"
19   app "MediaInfo.app"
21   zap trash: [
22     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/net.mediaarea.mediainfo.mac-old.sfl*",
23     "~/Library/Preferences/net.mediaarea.mediainfo.mac-old.plist",
24     "~/Library/Saved Application State/net.mediaarea.mediainfo.mac-old.savedState",
25   ]
26 end