excalidrawz 1.2.5
[Homebrew/homebrew-cask.git] / Casks / n / notion.rb
blobe9b6a38ec91b5c883c3d5920fd7236fc193bc6b5
1 cask "notion" do
2   arch arm: "-arm64"
3   livecheck_folder = on_arch_conditional arm: "arm64", intel: "latest"
5   version "4.1.0"
6   sha256 arm:   "64c64f94dd75ca888eab8a1c1025a9671b90422856c8facec77c00b69284380c",
7          intel: "054f4d568b10c1538ab4db9017b56c3bb09afc2b97ec96752774014e6b313ce2"
9   url "https://desktop-release.notion-static.com/Notion-#{version}#{arch}.dmg",
10       verified: "desktop-release.notion-static.com/"
11   name "Notion"
12   desc "App to write, plan, collaborate, and get organised"
13   homepage "https://www.notion.so/"
15   livecheck do
16     url "https://desktop-release.notion-static.com/#{livecheck_folder}-mac.yml"
17     strategy :electron_builder
18   end
20   auto_updates true
21   depends_on macos: ">= :catalina"
23   app "Notion.app"
25   zap trash: [
26     "~/Library/Application Support/Caches/notion-updater",
27     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/notion.id.sfl*",
28     "~/Library/Application Support/Notion",
29     "~/Library/Caches/notion.id*",
30     "~/Library/Logs/Notion",
31     "~/Library/Preferences/ByHost/notion.id.*",
32     "~/Library/Preferences/notion.id.*",
33     "~/Library/Saved Application State/notion.id.savedState",
34     "~/Library/WebKit/notion.id",
35   ]
36 end