cask "mediahuman-youtube-downloader" do arch arm: "-arm" version "3.9.9.96" sha256 :no_check on_sierra :or_older do url "https://www.mediahuman.net/files/YouTubeDownloader-1012.dmg" end on_high_sierra :or_newer do url "https://www.mediahuman.net/files/YouTubeDownloader#{arch}.dmg" end name "MediaHuman YouTube Downloader" desc "YouTube videos downloader" homepage "https://www.mediahuman.net/youtube-video-downloader/" livecheck do url :homepage regex(/Version:.*?(\d+(?:\.\d+)+)/i) end auto_updates true depends_on macos: ">= :sierra" app "MediaHuman YouTube Downloader.app" zap trash: [ "~/Library/Application Support/MediaHuman/YouTube Downloader/", "~/Library/Caches/MediaHuman/YouTube Downloader/", "~/Library/Preferences/com.mediahuman.YouTube Downloader.plist", "~/Library/Saved Application State/com.mediahuman.YouTube Downloader.savedState", ] end