cask "remnote" do arch arm: "-arm64" livecheck_arch = on_arch_conditional arm: "_m1" version "1.28.55" sha256 arm: "6c07d5c797659547f6e6ea2588ee7f323a9001e9a7f6f441bfa1ea0a3c448d32", intel: "9a7417d77180d2c9fe0a7eff3b16dc2ed9d5a8067a512a9f996714aefc0602da" url "https://download2.remnote.io/remnote-desktop2/RemNote-#{version}#{arch}-mac.zip" name "RemNote" desc "Spaced-repetition powered note-taking tool" homepage "https://www.remnote.com/" livecheck do url "https://backend.remnote.com/desktop/mac#{livecheck_arch}" regex(/RemNote[._-]v?(\d+(?:\.\d+)+)/i) strategy :header_match end auto_updates true depends_on macos: :ventura app "RemNote.app" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/io.remnote.sfl*", "~/Library/Application Support/RemNote", "~/Library/Logs/RemNote", "~/Library/Preferences/io.remnote.plist", "~/Library/Saved Application State/io.remnote.savedState", ] end