excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / w / wiznote.rb
blob7941ba12f04033a5328f78dfd09f7376a237436a
1 cask "wiznote" do
2   arch arm: "arm64", intel: "x64"
4   version "0.1.107"
5   sha256 arm:   "72191dd13e51d1b00c9c1845b5bdd59a354ad6c3db219619c09666f15abf0513",
6          intel: "aa110858f6fc80deb9e3626765c19de864d148687c32b4b794b2e02aee6c9215"
8   url "https://get.wiz.cn/x/wiznote-desktop-#{version}-mac-#{arch}.dmg"
9   name "WizNote"
10   desc "Note-taking application"
11   homepage "https://www.wiz.cn/"
13   livecheck do
14     url "https://url.wiz.cn/u/mac64_new"
15     regex(/wiznote[._-]desktop[._-]?(\d+(?:\.\d+)+).*?\.dmg/i)
16     strategy :header_match
17   end
19   auto_updates true
20   depends_on macos: ">= :sierra"
22   app "WizNote.app"
24   zap trash: [
25     "~/Library/Application Support/Caches/wiznote-desktop-updater",
26     "~/Library/Application Support/WizNote",
27     "~/Library/Caches/cn.wiznote.desktop",
28     "~/Library/Caches/cn.wiznote.desktop.ShipIt",
29     "~/Library/Logs/WizNote",
30     "~/Library/Preferences/ByHost/cn.wiznote.desktop.ShipIt.*.plist",
31     "~/Library/Preferences/cn.wiznote.desktop.plist",
32     "~/Library/Saved Application State/cn.wiznote.desktop.savedState",
33   ]
34 end