Casks/n/notion.rb
cask "notion" do
arch arm: "-arm64"
livecheck_folder = on_arch_conditional arm: "arm64", intel: "latest"
version "3.14.0"
sha256 arm: "281b681315f22fdb7919dabb7da40bec606cf0553e8d3dc3b95b1e280e22c048",
intel: "5d7b762f522754b74c78bd0f0ebf292e6750224ee7bc4a3837156bdb5722ab11"
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 organised"
homepage "https://www.notion.so/"
livecheck do
url "https://desktop-release.notion-static.com/#{livecheck_folder}-mac.yml"
strategy :electron_builder
end
auto_updates true
depends_on macos: ">= :catalina"
app "Notion.app"
zap trash: [
"~/Library/Application Support/Caches/notion-updater",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/notion.id.sfl*",
"~/Library/Application Support/Notion",
"~/Library/Caches/notion.id*",
"~/Library/Logs/Notion",
"~/Library/Preferences/ByHost/notion.id.*",
"~/Library/Preferences/notion.id.*",
"~/Library/Saved Application State/notion.id.savedState",
"~/Library/WebKit/notion.id",
]
end