cask "rider" do arch arm: "-aarch64" version "2024.3,243.21565.191" sha256 arm: "2ca76a1d37bd429c8cfd8792512ecd6a9ff385c152e65c68a4620c8a67441e44", intel: "b8552f7e124b3d7678d6b7dfe3b54b13a70f70c4523f19d36f52172dc276ad3c" url "https://download.jetbrains.com/rider/JetBrains.Rider-#{version.csv.first}#{arch}.dmg" name "JetBrains Rider" desc ".NET IDE" homepage "https://www.jetbrains.com/rider/" livecheck do url "https://data.services.jetbrains.com/products/releases?code=RD&latest=true&type=release" strategy :json do |json| json["RD"]&.map do |release| version = release["version"] build = release["build"] next if version.blank? || build.blank? "#{version},#{build}" end end end auto_updates true depends_on macos: ">= :high_sierra" app "Rider.app" binary "#{appdir}/Rider.app/Contents/MacOS/rider" zap trash: [ "~/Library/Application Support/Rider#{version.major_minor}", "~/Library/Caches/Rider#{version.major_minor}", "~/Library/Logs/Rider#{version.major_minor}", "~/Library/Preferences/jetbrains.rider.71e559ef.plist", "~/Library/Preferences/Rider#{version.major_minor}", "~/Library/Saved Application State/com.jetbrains.rider.savedState", ] end