cask "aptakube" do
  version "1.6.1"
  sha256 "e1e890813463c6258a0d06e3ed9812de0414b40095d2714d0c76104fa228f648"

  url "https://releases.aptakube.com/Aptakube_#{version}_universal.dmg"
  name "Aptakube"
  desc "Kubernetes desktop client"
  homepage "https://aptakube.com/"

  livecheck do
    url "https://aptakube.com/api/latest"
    regex(/"version": "(\d+(?:\.\d+)+)"/i)
  end

  auto_updates true
  depends_on macos: ">= :catalina"

  app "Aptakube.app"

  zap trash: [
    "~/Library/Application Support/com.aptakube.Aptakube",
    "~/Library/Caches/com.aptakube.Aptakube",
    "~/Library/Logs/com.aptakube.Aptakube",
  ]
end
