homebrew-cask/Casks/drawio.rb

37 lines
1.0 KiB
Ruby

cask "drawio" do
arch = Hardware::CPU.intel? ? "x64" : "arm64"
version "15.8.7"
url "https://github.com/jgraph/drawio-desktop/releases/download/v#{version}/draw.io-#{arch}-#{version}.dmg",
verified: "github.com/jgraph/drawio-desktop/"
if Hardware::CPU.intel?
sha256 "054e687e4db89cc9f461a366da5b0746f8482125d222b7163ebe7cf99dd3de2f"
else
sha256 "289115dde3e51fa201191da1eb998a4a05d590a79d1c83b5f213c4e28ff04311"
end
name "draw.io Desktop"
desc "Draw.io is free online diagram software"
homepage "https://www.diagrams.net/"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
app "draw.io.app"
zap trash: [
"~/Library/Application Support/draw.io",
"~/Library/Caches/com.jgraph.drawio.desktop",
"~/Library/Logs/draw.io",
"~/Library/Preferences/com.jgraph.drawio.desktop.helper.plist",
"~/Library/Preferences/com.jgraph.drawio.desktop.plist",
"~/Library/Saved Application State/com.jgraph.drawio.desktop.savedState",
"~/Library/WebKit/com.jgraph.drawio.desktop",
]
end