cask "notion" do arch arm: "-arm64" livecheck_folder = on_arch_conditional arm: "apple-silicon", intel: "mac" version "2.1.12" sha256 arm: "5c3140e2467353e7007e8e1d480ee411abf8522d8a43b11c12ecb2214c7073e3", intel: "9ca746d814f85bb8359a073b8ecc5ec096885cb4403134d7475eef1f37d3542f" url "https://desktop-release.notion-static.com/Notion-#{version}#{arch}.dmg", verified: "desktop-release.notion-static.com/" name "Notion" desc "App to write, plan, collaborate, and get organized" homepage "https://www.notion.so/" livecheck do url "https://www.notion.so/desktop/#{livecheck_folder}/download" strategy :header_match regex(/Notion[._-]v?(\d+(?:\.\d+)*?)[^.]*?\.dmg/i) end auto_updates true app "Notion.app" zap trash: [ "~/Library/Application Support/Caches/notion-updater", "~/Library/Application Support/Notion", "~/Library/Caches/notion.id", "~/Library/Logs/Notion", "~/Library/Preferences/notion.id.helper.plist", "~/Library/Preferences/notion.id.plist", "~/Library/Saved Application State/notion.id.savedState", "~/Library/WebKit/notion.id", ] end