cask "pro-find" do
  version "1.9.2"
  sha256 "5f22f4a5bfdeecf7635367a02db227c67b07df3d76a070c4ae1182653e4703da"

  url "http://das-nas.myasustor.com/dapp-dmg/PFnd-#{version.before_comma}.dmg"
  name "ProFind"
  homepage "https://www.zeroonetwenty.com/profind/"

  livecheck do
    url "https://www.zeroonetwenty.com/profind/downloads/ProFindVersionInfo.xml"
    strategy :sparkle
  end

  depends_on macos: ">= :high_sierra"

  app "ProFind.app"

  zap trash: [
    "~/Library/Application Support/com.zeroonetwenty.ProFind",
    "~/Library/Caches/com.zeroonetwenty.ProFind",
    "~/Library/Application Scripts/com.zeroonetwenty.ProFind",
    "~/Library/Preferences/com.zeroonetwenty.ProFind.plist",
    "~/Library/Preferences/com.zeroonetwenty.ProFindHelper.plist",
  ]
end
