cask "fresh" do
  version "4.0.7,407.101"
  sha256 :no_check

  url "https://ironicsoftware.com/downloads/Fresh.zip"
  name "Fresh"
  desc "Keep your recently modified files at hand and up-to-date"
  homepage "https://ironicsoftware.com/fresh/"

  livecheck do
    url :url
    strategy :extract_plist
  end

  depends_on macos: ">= :high_sierra"

  app "Fresh.app"

  zap trash: [
    "~/Library/Application Scripts/com.ironic.fresh4",
    "~/Library/Application Support/Fresh",
    "~/Library/Caches/com.ironic.fresh4",
    "~/Library/Containers/com.ironic.fresh4",
    "~/Library/HTTPStorages/com.ironic.fresh4",
    "~/Library/Preferences/com.ironic.fresh4.plist",
  ]
end
