29 lines
799 B
Ruby
29 lines
799 B
Ruby
cask "plex" do
|
|
version "1.39.1.2763,300bb607"
|
|
sha256 "f85e1818008a830f4255a22a84b815dc27ed1894176619db6d0efa967ab100cf"
|
|
|
|
url "https://downloads.plex.tv/plex-desktop/#{version.csv.first}-#{version.csv.second}/macos/Plex-#{version.csv.first}-#{version.csv.second}-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)
|
|
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.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/Plex",
|
|
"~/Library/Caches/Plex",
|
|
"~/Library/Logs/Plex",
|
|
]
|
|
end
|