Merge pull request #198952 from Homebrew/bump-vienna-assistant-1.2.483
[Homebrew/homebrew-cask.git] / Casks / m / mediainfo.rb
blob4fe961231015bbfc92948bceebad49f94c7b282d
1 cask "mediainfo" do
2   version "24.12"
3   sha256 "ce20984fe0911fa3b7c72d7ca5d126dc87621a549698dfab40ab6e8f0c5374b8"
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