cask "mqtt-explorer" do
  version "0.3.5"
  sha256 "4322a9127c3ce9025d33afa3ff91e76e8873fff260493a112eadc4769c027778"

  url "https://github.com/thomasnordquist/MQTT-Explorer/releases/download/v#{version}/MQTT-Explorer-#{version}-mac.zip",
      verified: "github.com/thomasnordquist/MQTT-Explorer/"
  name "MQTT Explorer"
  homepage "https://mqtt-explorer.com/"

  livecheck do
    url :url
    strategy :github_latest
  end

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

  depends_on :macos

  app "MQTT Explorer.app"

  uninstall quit: "de.t7n.apps.mqtt-explorer"

  zap trash: [
    "~/Library/Application Scripts/de.t7n.apps.mqtt-explorer",
    "~/Library/Containers/de.t7n.apps.mqtt-explorer",
    "~/Library/Group Containers/*.de.t7n.apps.mqtt-explorer",
  ]

  caveats do
    requires_rosetta
  end
end
