cask "melodics" do version "4.0.2391,A889FA29-7EE1-41AF-B3F4-D71D86CCA774" sha256 "21c11b9ef03269ce80e43879a64d17512e09cec6e225c6ef750f21c4f1238fb8" 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: ">= :catalina" 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