cask "figma@beta" do arch arm: "mac-arm", intel: "mac" version "126.12.2" sha256 arm: "38083d17b75797c6f0b998afa0d389311f16e9d233aee5e89996d5a5e5319228", intel: "341a0655e0718a3fb461a7b14edf91cae880b398bd02e5c6673945556658d044" url "https://desktop.figma.com/#{arch}/beta/FigmaBeta-#{version}.zip" name "Figma Beta" desc "Collaborative team software" homepage "https://figma.com/" livecheck do url "https://desktop.figma.com/#{arch}/beta/RELEASE.json" strategy :json do |json| json["version"] end end depends_on macos: :monterey app "Figma Beta.app" uninstall quit: "com.figma.agent" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.figma.desktopbeta.sfl*", "~/Library/Caches/com.figma.agent", "~/Library/Preferences/com.figma.DesktopBeta.plist", "~/Library/Saved Application State/com.figma.DesktopBeta.savedState", ] end