Files
2024-03-08 03:31:13 +00:00

29 lines
902 B
Ruby

cask "electron" do
arch arm: "arm64", intel: "x64"
version "29.1.1"
sha256 arm: "584aea22fc600ab6b8c12c939045b6b1aec35ecc1187c3c85678da0af9890f9b",
intel: "450e4e4b3e11b31e07225158249fdd96657e157772a1538c8d97cd786e10a58b"
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
app "Electron.app"
binary "#{appdir}/Electron.app/Contents/MacOS/Electron", target: "electron"
zap trash: [
"~/Library/Application Support/Electron",
"~/Library/Caches/Electron",
"~/Library/Preferences/com.github.electron.helper.plist",
"~/Library/Preferences/com.github.electron.plist",
]
end