cask "marginnote" do version "4.1.10" sha256 "0081703250a340d70f847dec38171d14cdeaa0f1b54b4b6f6a90be78a9996b2d" url "https://dist.marginnote.cn/MarginNote#{version}.dmg", verified: "marginnote.cn/" name "MarginNote" desc "E-reader" homepage "https://www.marginnote.com/" livecheck do url "https://dist.marginnote.cn/marginnote#{version.major}.xml" strategy :sparkle, &:short_version end auto_updates true depends_on macos: ">= :monterey" app "MarginNote #{version.major}.app" zap trash: [ "~/Library/Application Support/QReader.MarginStudyMac", "~/Library/Containers/QReader.MarginStudyMac", ] end