cask "naps2" do # NOTE: "2" is not a version number, but an intrinsic part of the product name arch arm: "arm64", intel: "x64" version "8.2.0" sha256 arm: "6541571e1e2d692da2a6f02c7058de49404778f53a63f489d977d0a598016c15", intel: "9953ab00e76d86fe3a8cc06771477a0ff428565b21d66f1195b61937b843c9b1" url "https://github.com/cyanfish/naps2/releases/download/v#{version}/naps2-#{version}-mac-#{arch}.pkg", verified: "github.com/cyanfish/naps2/" name "NAPS2" desc "Document scanning application" homepage "https://www.naps2.com/" livecheck do url :url strategy :github_latest end depends_on macos: ">= :catalina" pkg "naps2-#{version}-mac-#{arch}.pkg" uninstall pkgutil: "com.naps2.desktop" zap trash: [ "~/.config/NAPS2", "~/Library/Preferences/com.naps2.desktop.plist", "~/Library/Saved Application State/com.naps2.desktop.savedState", ] end