cask "notion-calendar" do arch arm: "arm64", intel: "x64" version "1.124.0,241009gdr7bilqc" sha256 arm: "42a94c4a424f2131578d79f122a0affcd59cff8b14843dc2940ea66920129619", intel: "a52e73403faec51a5baec1e823f5d1d448d7737cea70e3d25e45cf70c3b946af" url "https://download.todesktop.com/210303leazlircz/Notion%20Calendar%20#{version.csv.first}%20-%20Build%20#{version.csv.second}-#{arch}-mac.zip", verified: "download.todesktop.com/210303leazlircz/" name "Notion Calendar" desc "Calendar for professionals and teams" homepage "https://www.notion.so/product/calendar" livecheck do url "https://download.todesktop.com/210303leazlircz/latest-mac.yml" regex(/Build[ ._-]([^-]+)[._-]/i) strategy :electron_builder do |yaml, regex| yaml["files"]&.map do |item| match = item["url"]&.match(regex) next if match.blank? "#{yaml["version"]},#{match[1]}" end end end auto_updates true depends_on macos: ">= :catalina" app "Notion Calendar.app" # Renamed from Cron to Notion Calendar on 2024-01-18, but some files still use the old name zap trash: [ "~/Library/Application Support/Notion Calendar", "~/Library/Preferences/com.cron.electron.plist", "~/Library/Saved Application State/com.cron.electron.savedState", ] end