homebrew-cask/Casks/4/4k-youtube-to-mp3.rb

29 lines
960 B
Ruby

cask "4k-youtube-to-mp3" do
# NOTE: "3" is not a version number, but an intrinsic part of the product name
arch arm: "arm64", intel: "x64"
version "5.4.0"
sha256 arm: "bbbc0fa16693184546c1de1623b900518b855c22f6ea4261fa36137ad0685d38",
intel: "dc0ea2858873b3c8df4526d9c9cf8e4404617a9129090c6864d5bd24d5d3686b"
url "https://dl.4kdownload.com/app/4kyoutubetomp3_#{version}_#{arch}.dmg"
name "4K YouTube to MP3"
desc "Turn YouTube links into MP3 files"
homepage "https://www.4kdownload.com/products/youtubetomp3/1"
livecheck do
url "https://www.4kdownload.com/download"
regex(%r{href=.*?/4kyoutubetomp3[._-]v?(\d+(?:\.\d+)+)[._-]#{arch}\.dmg}i)
end
depends_on macos: ">= :high_sierra"
app "4K YouTube to MP3.app"
zap trash: [
"~/Library/Application Support/4kdownload.com",
"~/Library/Preferences/com.4kdownload.*",
"~/Library/Saved Application State/com.openmedia.4kyoutubetomp3.savedState",
]
end