cask "zed" do arch arm: "aarch64", intel: "x86_64" version "0.161.2" sha256 arm: "51a4a081099ab63e9374440db49760784d2aeafc3939e9d63e525086082ea2da", intel: "df410e92ca906c18eadc659dc8ff1baaf26b3a173f43e637f1a2526a27b827db" url "https://zed.dev/api/releases/stable/#{version}/Zed-#{arch}.dmg" name "Zed" desc "Multiplayer code editor" homepage "https://zed.dev/" livecheck do url "https://zed.dev/api/releases/latest?asset=Zed.dmg&stable=1" strategy :json do |json| json["version"] end end auto_updates true depends_on macos: ">= :catalina" app "Zed.app" binary "#{appdir}/Zed.app/Contents/MacOS/cli", target: "zed" zap trash: [ "~/.config/zed", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/dev.zed.zed.sfl*", "~/Library/Application Support/Zed", "~/Library/Caches/dev.zed.Zed", "~/Library/HTTPStorages/dev.zed.Zed", "~/Library/Logs/Zed", "~/Library/Preferences/dev.zed.Zed.plist", "~/Library/Saved Application State/dev.zed.Zed.savedState", ] end