mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
29 lines
902 B
Ruby
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
|