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