cask "http-toolkit" do
  version "0.1.23"
  sha256 "a191b0ac2e9930d6a2a1c9b8800e86f96324db89236b8c219a3ad530046c1c82"

  # github.com/httptoolkit/httptoolkit-desktop/ was verified as official when first introduced to the cask
  url "https://github.com/httptoolkit/httptoolkit-desktop/releases/download/v#{version}/HTTP.Toolkit.dmg"
  appcast "https://github.com/httptoolkit/httptoolkit-desktop/releases.atom"
  name "HTTP Toolkit"
  homepage "https://httptoolkit.tech/"

  app "HTTP Toolkit.app"

  zap trash: [
    "~/Library/Application Support/HTTP Toolkit",
    "~/Library/Caches/httptoolkit-server",
    "~/Library/Logs/HTTP Toolkit",
    "~/Library/Preferences/httptoolkit",
    "~/Library/Preferences/tech.httptoolkit.desktop.plist",
    "~/Library/Saved Application State/tech.httptoolkit.desktop.savedState",
  ]
end
