cask "todotxt" do
  version "2.4.0"
  sha256 "67f94669661e5b2186f3b619465d18206d8e20ae082d672c86b17d766f59fd41"

  url "https://github.com/mjdescy/TodoTxtMac/releases/download/#{version}/TodoTxtMac.app.zip",
      verified: "github.com/mjdescy/TodoTxtMac/"
  name "TodoTxtMac"
  desc "Minimalist, keyboard-driven to-do manager"
  homepage "https://mjdescy.github.io/TodoTxtMac/"

  deprecate! date: "2024-08-30", because: :unmaintained
  disable! date: "2025-08-30", because: :unmaintained

  depends_on :macos

  app "TodoTxtMac.app"

  zap trash: [
    "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.descy.michael.todotxtmac.sfl*",
    "~/Library/Preferences/com.descy.michael.TodoTxtMac.plist",
  ]

  caveats do
    requires_rosetta
  end
end
