cask "electron" do arch = Hardware::CPU.intel? ? "x64" : "arm64" version "19.0.6" if Hardware::CPU.intel? sha256 "1b7aa4fa6678dcfcd9c3430fc429276d818a9ef8719f5db33a6b80cf75d602b9" else sha256 "42c38bd828ecc29e5b4798d21a04d49c41febe379cc11d55538dcf395e293ec1" end 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 regex(/^v?(\d+(?:\.\d+)+)$/i) end app "Electron.app" zap trash: [ "~/Library/Application Support/Electron", "~/Library/Caches/Electron", "~/Library/Preferences/com.github.electron.helper.plist", "~/Library/Preferences/com.github.electron.plist", ] end