homebrew-cask/Casks/n/notion.rb

36 lines
1.1 KiB
Ruby

cask "notion" do
arch arm: "-arm64"
livecheck_folder = on_arch_conditional arm: "arm64", intel: "latest"
version "3.0.0"
sha256 arm: "f01f5856f1bff5de1e531eff6f0c7ee14180cb20766f3fca83a4f4f165183ef5",
intel: "e940b5d8ed4211177916059c2d91aa030cbcc880e768796089bf0173b476c962"
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://desktop-release.notion-static.com/#{livecheck_folder}-mac.yml"
strategy :electron_builder
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/ByHost/notion.id.*.plist",
"~/Library/Preferences/notion.id.helper.plist",
"~/Library/Preferences/notion.id.plist",
"~/Library/Saved Application State/notion.id.savedState",
"~/Library/WebKit/notion.id",
]
end