Files
homebrew-cask/Casks/p/plex-htpc.rb
2023-11-29 13:01:51 -05:00

29 lines
839 B
Ruby

cask "plex-htpc" do
version "1.52.1.4035,e0b6ca16"
sha256 "7eb82bd49abcccce4af5ecf115c37064be87839de9cf3c2c8968afbc4ca24b67"
url "https://downloads.plex.tv/htpc/#{version.csv.first}-#{version.csv.second}/macos/PlexHTPC-#{version.csv.first}-#{version.csv.second}-universal.zip"
name "Plex HTPC"
desc "Home Theater PC media player"
homepage "https://www.plex.tv/"
livecheck do
url "https://plex.tv/api/downloads/7.json"
regex(/"version"\s*:\s*"(\d(?:\.\d+)*)-([a-f0-9]{8})"/i)
strategy :page_match do |page, regex|
page.scan(regex).map { |match| "#{match[0]},#{match[1]}" }
end
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Plex HTPC.app"
zap trash: [
"~/Library/Application Support/Plex HTPC",
"~/Library/Caches/Plex HTPC",
"~/Library/Logs/Plex HTPC",
]
end