Merge pull request #200213 from Homebrew/bump-tidelift-1.14.0
[Homebrew/homebrew-cask.git] / Casks / n / notion-calendar.rb
blob3641e86f0fa72cf8c4e71842fa77b01c081d0207
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"
14   livecheck do
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)
20         next if match.blank?
22         "#{yaml["version"]},#{match[1]}"
23       end
24     end
25   end
27   auto_updates true
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
33   zap trash: [
34     "~/Library/Application Support/Notion Calendar",
35     "~/Library/Preferences/com.cron.electron.plist",
36     "~/Library/Saved Application State/com.cron.electron.savedState",
37   ]
38 end