cask "spacesaver" do
  version "1.0.14"
  sha256 "9abe68b52052c8b90460985cec95edfe0c4a689a2c6e09f58d4eee1ae6f59235"

  url "https://github.com/tranhuycong/space-saver/releases/download/v#{version}/SpaceSaver-Installer.dmg",
      verified: "github.com/tranhuycong/space-saver/"
  name "SpaceSaver"
  desc "Application designed to help you manage and optimize your workspace"
  homepage "https://spacesaver.congdev.com/"

  disable! date: "2026-04-05", because: :no_longer_meets_criteria

  depends_on macos: :monterey

  app "SpaceSaver.app"

  zap trash: [
    "~/Library/Caches/com.congth504.spacesaver",
    "~/Library/HTTPStorages/com.congth504.spacesaver",
    "~/Library/Preferences/com.congth504.spacesaver.plist",
  ]
end
