cask "ghosttile" do
  version "15,15,1510040474"
  sha256 "6f723c7489a272a82648a3fb2a4ad0f91f6bd3d79eea748ea20a046a3aefe0ab"

  url "https://dl.devmate.com/im.kernelpanic.GhostTile/#{version.csv.second}/#{version.csv.third}/GhostTile-#{version.csv.first}.zip",
      verified: "dl.devmate.com/im.kernelpanic.GhostTile/"
  name "Kernelpanic GhostTile"
  name "GhostTile"
  desc "Hide your running applications from Dock"
  homepage "https://ghosttile.kernelpanic.im/"

  deprecate! date: "2024-10-14", because: :unmaintained
  disable! date: "2025-10-14", because: :unmaintained

  depends_on :macos

  app "GhostTile.app"

  zap trash: [
    "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/im.kernelpanic.ghosttile.sfl*",
    "~/Library/Application Support/GhostTile",
    "~/Library/Application Support/im.kernelpanic.GhostTile",
    "~/Library/HTTPStorages/im.kernelpanic.GhostTile",
    "~/Library/Logs/GhostTile",
    "~/Library/Preferences/im.kernelpanic.GhostTile.plist",
  ]

  caveats do
    requires_rosetta
  end
end
