cask "electron" do arch arm: "arm64", intel: "x64" version "40.2.1" sha256 arm: "c25a3ba00ecad1676af6e096b76ceefc908a1959fdbcbd0630775fec86fc7211", intel: "3e9ce041521a6dc740e2fdbafa3bc7b169c5c9b0dc4830c15513bae53fe15830" 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 disable! date: "2026-09-01", because: :fails_gatekeeper_check depends_on macos: ">= :monterey" 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