Files

26 lines
618 B
Ruby

cask "plex" do
version "1.30.1.2115-81e1fc3f"
sha256 "92dd4d453e9363323ab1589ccf54ef8ecca3ab5e8fb5389105fcadad2904a3e4"
url "https://downloads.plex.tv/plex-desktop/#{version}/macos/Plex-#{version}-x86_64.zip"
name "Plex"
desc "Home media player"
homepage "https://www.plex.tv/"
livecheck do
url "https://plex.tv/api/downloads/6.json"
regex(/"version"\s*:\s*"(\d(?:\.\d+)*-[a-f0-9]{8})"/i)
end
auto_updates true
depends_on macos: ">= :high_sierra"
app "Plex.app"
zap trash: [
"~/Library/Application Support/Plex",
"~/Library/Caches/Plex",
"~/Library/Logs/Plex",
]
end