cask "wooshy" do
  version "49"
  sha256 :no_check

  url "https://releases.wooshy.app/Wooshy.zip"
  name "Wooshy"
  desc "Click and more on UI Elements through typing"
  homepage "https://wooshy.app/"

  livecheck do
    url "https://releases.wooshy.app/appcast.xml"
    strategy :sparkle, &:short_version
  end

  auto_updates true
  depends_on macos: :sonoma

  app "Wooshy.app"

  zap login_item: "Wooshy",
      trash:      [
        "~/Library/Application Scripts/mo.com.sleeplessmind.Wooshy*",
        "~/Library/Application Support/Wooshy",
        "~/Library/Caches/mo.com.sleeplessmind.Wooshy",
        "~/Library/Containers/mo.com.sleeplessmind.Wooshy*",
        "~/Library/HTTPStorages/mo.com.sleeplessmind.Wooshy*",
        "~/Library/Preferences/mo.com.sleeplessmind.Wooshy.plist",
        "~/Library/Saved Application State/mo.com.sleeplessmind.Wooshy.savedState",
      ]
end
