cask "cisdem-document-reader" do
  version "5.5.1"
  sha256 :no_check

  url "https://download.cisdem.com/cisdem-documentreader.dmg"
  name "Cisdem Document Reader"
  desc "Document reader to open and view Windows-based files"
  homepage "https://www.cisdem.com/document-reader-mac.html"

  livecheck do
    url "https://www.cisdem.com/js/notes/document-reader-mac.js"
    regex(/(\d+(?:\.\d+)*)\s+\(\d+(?:-\d+)+\)/i)
  end

  app "Cisdem Document Reader.app"

  zap trash: [
    "~/Library/Application Support/com.cisdem.documentreader",
    "~/Library/Caches/com.cisdem.documentreader",
    "~/Library/HTTPStorages/com.cisdem.documentreader",
    "~/Library/Preferences/com.cisdem.asgroups.plist",
    "~/Library/Preferences/com.cisdem.documentreader.plist",
    "~/Library/Saved Application State/com.cisdem.documentreader.savedState",
  ]
end
