cask "progressive-downloader" do version "7.4" sha256 "a92e24b84f2203cff2bcaa2e7ff718914ff841a6c2d98202952b8904fb08ce03" url "https://www.macpsd.net/update/#{version}/PSD.dmg" name "Progressive Downloader" desc "Download manager" homepage "https://www.macpsd.net/" livecheck do url :homepage regex(%r{href=.*?/(\d+(?:\.\d+)+)/PSD[^"' >]*?\.dmg}i) end depends_on macos: ">= :high_sierra" app "Progressive Downloader.app" zap trash: [ "~/Library/Application Support/Progressive Downloader Data", "~/Library/Caches/com.PS.Downloader", "~/Library/Caches/com.PS.PSD", "~/Library/Preferences/com.PS.PSD.plist", ] end