cask "doxie" do
  version "3.5.1"
  sha256 "f461a68ef142991d4f02db81992e3e9e8fe2896583d4d35c035df708190f2b78"

  url "https://download.getdoxie.com/Doxie-#{version}.dmg"
  name "Doxie"
  desc "Companion app for scanner hardware"
  homepage "https://www.getdoxie.com/"

  livecheck do
    url "https://r.getdoxie.com/app/download_mac/"
    strategy :header_match
  end

  depends_on :macos

  app "Doxie.app"

  zap trash: [
    "~/Library/Caches/com.getdoxie.doxie",
    "~/Library/Preferences/com.getdoxie.doxie.plist",
    "~/Library/Saved Application State/com.getdoxie.doxie.savedState",
  ]
end
