excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / n / naps2.rb
blobc6c33af86a1b922673d88a30a7cf56d060c3a029
1 cask "naps2" do
2   # NOTE: "2" is not a version number, but an intrinsic part of the product name
3   arch arm: "arm64", intel: "x64"
5   version "7.5.2"
6   sha256 arm:   "b919da17a5eb6ae5273d714a48ff61f0d65496047d63303b1f8561635b508b9d",
7          intel: "16c0e2f629a92b9ad5f4340dd56abab937b92f343600f1ce6230c547a8ead9a6"
9   url "https://github.com/cyanfish/naps2/releases/download/v#{version}/naps2-#{version}-mac-#{arch}.pkg",
10       verified: "github.com/cyanfish/naps2/"
11   name "NAPS2"
12   desc "Document scanning application"
13   homepage "https://www.naps2.com/"
15   livecheck do
16     url :url
17     strategy :github_latest
18   end
20   depends_on macos: ">= :catalina"
22   pkg "naps2-#{version}-mac-#{arch}.pkg"
24   uninstall pkgutil: "com.naps2.desktop"
26   zap trash: [
27     "~/.config/NAPS2",
28     "~/Library/Preferences/com.naps2.desktop.plist",
29     "~/Library/Saved Application State/com.naps2.desktop.savedState",
30   ]
31 end