1 cask "notion-calendar" do
2 arch arm: "arm64", intel: "x64"
4 version "1.127.0,250121ji52u08fs"
5 sha256 arm: "3182cb45ca1168fd932d22a7babb63f9120d09ad31fa52b6fdc253c72fd07597",
6 intel: "e078ffa61da575dce943470107e12d688e5d57125a79465873a8375f648ef6b6"
8 url "https://download.todesktop.com/210303leazlircz/Notion%20Calendar%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip",
9 verified: "download.todesktop.com/210303leazlircz/"
10 name "Notion Calendar"
11 desc "Calendar for professionals and teams"
12 homepage "https://www.notion.so/product/calendar"
15 url "https://download.todesktop.com/210303leazlircz/latest-mac.yml"
16 regex(/Build[ ._-]([^-]+)[._-]/i)
17 strategy :electron_builder do |yaml, regex|
18 yaml["files"]&.map do |item|
19 match = item["url"]&.match(regex)
22 "#{yaml["version"]},#{match[1]}"
28 depends_on macos: ">= :big_sur"
30 app "Notion Calendar.app"
32 # Renamed from Cron to Notion Calendar on 2024-01-18, but some files still use the old name
34 "~/Library/Application Support/Notion Calendar",
35 "~/Library/Preferences/com.cron.electron.plist",
36 "~/Library/Saved Application State/com.cron.electron.savedState",