cask "writerside" do arch arm: "-aarch64" version "2024.3,243.21565.432" sha256 arm: "04996f17dfb4a840c74270266efc4dad9b78fa498fb9016109d1b58b498791b5", intel: "5a44fc83964514916c52b9cd49fa13e3f16757474a84dca85af7c6d97c2ede4b" url "https://download.jetbrains.com/writerside/writerside-#{version.csv.second}#{arch}.dmg" name "Writerside" desc "Technical writing environment" homepage "https://www.jetbrains.com/writerside/" livecheck do url "https://data.services.jetbrains.com/products/releases?code=WRS&latest=true&type=eap" strategy :json do |json| json["WRS"]&.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: ">= :catalina" app "Writerside #{version.before_comma} EAP.app", target: "Writerside.app" binary "#{appdir}/Writerside.app/Contents/MacOS/writerside" zap trash: [ "~/Library/Application Support/JetBrains/Writerside#{version.major_minor}", "~/Library/Caches/JetBrains/Writerside#{version.major_minor}", "~/Library/Logs/JetBrains/Writerside#{version.major_minor}", "~/Library/Preferences/com.jetbrains.writerside-EAP.plist", "~/Library/Saved Application State/com.jetbrains.writerside-EAP.SavedState", ] end