cask "wiznote" do arch arm: "arm64", intel: "x64" version "0.1.94" sha256 arm: "a2d54bd30b45532c7eb3c1407e4b89d744050ed1b9c4eeb4254043d7df4256eb", intel: "4420a91d3124a7006ac15524149144dcbca8977a27749802f9bcb5ab8e0e2bbf" url "https://get.wiz.cn/x/wiznote-desktop-#{version}-mac-#{arch}.dmg" name "WizNote" desc "Note-taking application" homepage "https://www.wiz.cn/" livecheck do url "https://url.wiz.cn/u/mac64_new" strategy :header_match regex(/wiznote[._-]desktop[._-]?(\d+(?:\.\d+)+).*?\.dmg/i) end auto_updates true depends_on macos: ">= :sierra" app "WizNote.app" zap trash: [ "~/Library/Application Support/Caches/wiznote-desktop-updater", "~/Library/Application Support/WizNote", "~/Library/Caches/cn.wiznote.desktop", "~/Library/Caches/cn.wiznote.desktop.ShipIt", "~/Library/Logs/WizNote", "~/Library/Preferences/ByHost/cn.wiznote.desktop.ShipIt.*.plist", "~/Library/Preferences/cn.wiznote.desktop.plist", "~/Library/Saved Application State/cn.wiznote.desktop.savedState", ] end