cask "poe" do arch arm: "arm64", intel: "x64" version "1.1.32" sha256 arm: "a062047112cc02abcfef8364ed299924f4fc85a63a3d8b65932e1dbe773539e9", intel: "c209675edb1a8a6e4c774434e9e0bd533882630362d3c984e1511ff0489425a1" url "https://desktop-app.poecdn.net/updates/darwin_#{arch}/#{version}.zip", verified: "desktop-app.poecdn.net/updates/" name "Poe" desc "AI chat client" homepage "https://poe.com/" livecheck do url "https://updater.poe.com/darwin_#{arch}/0.0.0" regex(/v?(\d+(?:\.\d+)+)\.zip/i) strategy :json do |json| match = json["url"]&.match(regex) next if match.blank? match[1] end end depends_on macos: ">= :big_sur" app "Poe.app" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.quora.poe.electron.sfl*", "~/Library/Application Support/Poe", "~/Library/Application Support/poe-electron", "~/Library/Caches/com.quora.poe.electron", "~/Library/Caches/com.quora.poe.electron.ShipIt", "~/Library/HTTPStorages/com.quora.poe.electron", "~/Library/HTTPStorages/com.quora.poe.electron.binarycookies", "~/Library/Preferences/com.quora.poe.electron.plist", "~/Library/Saved Application State/com.quora.poe.electron.savedState", ] end