-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
busycal.rb
39 lines (32 loc) 路 1.58 KB
/
busycal.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cask "busycal" do
version "2024.2.3,2024-05-12-21-37"
sha256 "db76536968804b4f1b066a1fa67573d3d812bd987ad34b703c5224152e43d5fa"
url "https://7e968b6ce8a839f034d9-23cfb9eddcb7b94cb43ba95f95a76900.ssl.cf1.rackcdn.com/bcl-#{version.csv.first}-#{version.csv.second}.zip",
verified: "7e968b6ce8a839f034d9-23cfb9eddcb7b94cb43ba95f95a76900.ssl.cf1.rackcdn.com/"
name "BusyCal"
desc "Calendar software focusing on flexibility and reliability"
homepage "https://busymac.com/busycal/index.html"
livecheck do
url "https://www.busymac.com/download/BusyCal.zip"
strategy :header_match do |headers|
match = headers["location"].match(/bcl-(\d+(?:\.\d+)+)-(.*?)\.zip/)
next if match.blank?
"#{match[1]},#{match[2]}"
end
end
auto_updates true
depends_on macos: ">= :el_capitan"
pkg "BusyCal Installer.pkg"
uninstall launchctl: "N4RA379GBW.com.busymac.busycal3.alarm",
quit: "N4RA379GBW.com.busymac.busycal3.alarm",
signal: ["TERM", "com.busymac.busycal3"],
pkgutil: "com.busymac.busycal3.pkg",
delete: "/Applications/BusyCal.app"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.busymac.busycal#{version.major}.sfl*",
"~/Library/Containers/com.busymac.busycal#{version.minor}",
"~/Library/Containers/N4RA379GBW.com.busymac.busycal#{version.minor}.alarm",
"~/Library/Group Containers/com.busymac.busycal#{version.minor}",
"~/Library/Group Containers/N4RA379GBW.com.busymac.busycal#{version.minor}",
]
end