mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
29 lines
817 B
Ruby
29 lines
817 B
Ruby
cask "beatunes" do
|
|
version "5.2.34"
|
|
sha256 "797051f6795e010364d97b8d0eee1af58ea613d0cfefd398673c111182fc514c"
|
|
|
|
url "https://coxy.beatunes.com/download/beaTunes-#{version.dots_to_hyphens}.dmg"
|
|
name "beaTunes"
|
|
desc "Analyze, inspect, and play songs"
|
|
homepage "https://www.beatunes.com/"
|
|
|
|
livecheck do
|
|
url "https://www.beatunes.com/en/beatunes-download.html"
|
|
regex(/href=.*?beaTunes[._-]?v?(\d+(?:-\d+)+)\.dmg/i)
|
|
strategy :page_match do |page, regex|
|
|
page.scan(regex)&.map { |match| match[0].tr("-", ".") }
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :el_capitan"
|
|
|
|
app "beaTunes#{version.major}.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/beaTunes",
|
|
"~/Library/Caches/beaTunes",
|
|
"~/Library/Logs/beaTunes",
|
|
"~/Library/Preferences/com.tagtraum.beatunes.plist",
|
|
]
|
|
end
|