cask "jetbrains-gateway" do arch arm: "-aarch64" version "2026.2.2,262.10315.114" sha256 arm: "f4c129c2888e1f215cea5b1f28394bb3524267ea1b976353dba0b44902d7108b", intel: "2562c9d1ec548fd89c5210286954276658a7fd0a304d8639dd8c06006f7a5b91" url "https://download.jetbrains.com/idea/gateway/JetBrainsGateway-#{version.csv.first}#{arch}.dmg" name "jetbrains-gateway" desc "Remote development gateway by Jetbrains" homepage "https://www.jetbrains.com/remote-development/gateway/" livecheck do url "https://data.services.jetbrains.com/products/releases?code=GW&latest=true&type=release" strategy :json do |json| json["GW"]&.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 app "JetBrains Gateway.app" binary "#{appdir}/JetBrains Gateway.app/Contents/MacOS/gateway" uninstall quit: "com.jetbrains.gateway" zap trash: [ "~/Library/Application Support/JetBrains/JetBrainsGateway#{version.major_minor}", "~/Library/Caches/JetBrains/JetBrainsGateway#{version.major_minor}", "~/Library/Logs/JetBrains/JetBrainsGateway#{version.major_minor}", "~/Library/Preferences/com.jetbrains.gateway.plist", "~/Library/Saved Application State/com.jetbrains.gateway.savedState", ] end