cask "electron" do arch arm: "arm64", intel: "x64" version "37.2.0" sha256 arm: "4e43432b53a118635048408851130a7065b3cfb193382c0cd755c9f56b2dbf06", intel: "e2d50fb9c6a7ea2a964ddc8fd925cbf9526048d890256983a66ea0a897c94196" url "https://github.com/electron/electron/releases/download/v#{version}/electron-v#{version}-darwin-#{arch}.zip", verified: "github.com/electron/electron/" name "Electron" desc "Build desktop apps with JavaScript, HTML, and CSS" homepage "https://electronjs.org/" livecheck do url :url strategy :github_latest end depends_on macos: ">= :big_sur" app "Electron.app" binary "#{appdir}/Electron.app/Contents/MacOS/Electron", target: "electron" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.electron.sfl*", "~/Library/Application Support/Electron", "~/Library/Caches/Electron", "~/Library/Preferences/com.github.electron.helper.plist", "~/Library/Preferences/com.github.electron.plist", "~/Library/Saved Application State/com.github.Electron.savedState", ] end