homebrew-cask/Casks/b/brave-browser@beta.rb

31 lines
1.1 KiB
Ruby

cask "brave-browser@beta" do
arch arm: "arm64", intel: "x64"
folder = on_arch_conditional arm: "beta-arm64", intel: "beta"
version "1.68.87.0"
sha256 arm: "468b3a3c0bdce070b5abc67d67a47129bd867e85594f29209af2de1c1750c2f3",
intel: "7ae35cd455fea8a3f2c0bb71559dc8c678cabe3f48f4359ec1e35c8df44dc512"
url "https://updates-cdn.bravesoftware.com/sparkle/Brave-Browser/#{folder}/#{version.major_minor_patch.sub(".", "")}/Brave-Browser-Beta-#{arch}.dmg",
verified: "updates-cdn.bravesoftware.com/sparkle/Brave-Browser/"
name "Brave Beta"
desc "Web browser focusing on privacy"
homepage "https://brave.com/download-beta/"
livecheck do
url "https://updates.bravesoftware.com/sparkle/Brave-Browser/#{folder}/appcast.xml"
strategy :sparkle, &:short_version
end
auto_updates true
depends_on macos: ">= :catalina"
app "Brave Browser Beta.app"
zap trash: [
"~/Library/Application Support/brave",
"~/Library/Preferences/com.electron.brave.plist",
"~/Library/Saved Application State/com.electron.brave.savedState",
]
end