Casks/m/melodics.rb
cask "melodics" do
version "4.0.2051,E280AFBB-FF38-452A-A05D-4DCF7024B963"
sha256 "35b605dd1c204ace70ef58f54ebb8581be918f89a2403fd6a5d9772089b1ede0"
url "https://web-cdn.melodics.com/download/#{version.csv.second}.zip"
name "Melodics"
desc "Helps you learn to play your instrument"
homepage "https://melodics.com/"
livecheck do
url "https://web-cdn.melodics.com/download/osxupdatescastv2.xml"
strategy :sparkle do |item|
"#{item.version},#{item.url[%r{/(\h+(?:-\h+)+)\.zip}i, 1]}"
end
end
depends_on macos: ">= :mojave"
app "Melodics.app"
zap trash: [
"~/Library/Application Support/Melodics",
"~/Library/Caches/Melodics",
"~/Library/Preferences/com.melodics.Melodics.plist",
"~/Library/Preferences/com.melodics.Melodics.updates.plist",
"~/Library/Saved Application State/com.melodics.melodics.savedState",
]
end