cask "brave-browser@beta" do arch arm: "arm64", intel: "x64" folder = on_arch_conditional arm: "beta-arm64", intel: "beta" version "1.74.5.0" sha256 arm: "6840e2215f223344bfae20fe0f4265a4591df36f12eec0e19e16ca8ac227b2f3", intel: "84828891f8dd9213a81dffec7547f297308ae4fdbc545922290ebba4c2bbe2ce" 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: ">= :big_sur" app "Brave Browser Beta.app" zap trash: [ "~/Library/Application Support/BraveSoftware/Brave-Browser-Beta", "~/Library/Caches/BraveSoftware/Brave-Browser-Beta", "~/Library/Caches/com.brave.Browser.beta", "~/Library/HTTPStorages/com.brave.Browser.beta", "~/Library/Preferences/com.brave.Browser.beta.plist", "~/Library/Saved Application State/com.brave.Browser.beta.savedState", ], rmdir: [ "~/Library/Application Support/BraveSoftware", "~/Library/Caches/BraveSoftware", ] end