cask "servo" do
  arch arm: "aarch64", intel: "x86_64"

  version "2026-08-08"
  sha256 arm:   "6a1a3a131ce90b8fa6419403b295198229dd78492b97ef592c1b60ea3c3f2438",
         intel: "8c08aa5a34f8dc1015c80951057baba9dd0ec92ae063539ff5e3cdc805fb20f2"

  url "https://github.com/servo/servo-nightly-builds/releases/download/#{version}/servo-#{arch}-apple-darwin.dmg",
      verified: "github.com/servo/servo-nightly-builds/"
  name "Servo"
  desc "Parallel browser engine"
  homepage "https://servo.org/"

  livecheck do
    url :url
    regex(/^v?(\d+(?:[.-]\d+)+)$/i)
    strategy :github_latest
  end

  disable! date: "2026-09-01", because: :fails_gatekeeper_check

  depends_on macos: :ventura

  app "Servo.app"

  zap trash: "~/Library/Application Support/Servo"
end
