-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
/
carbon-copy-cloner@5.rb
41 lines (34 loc) 路 1.31 KB
/
carbon-copy-cloner@5.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
40
41
cask "carbon-copy-cloner@5" do
version "5.1.28.6213"
sha256 "050ed65c493ff75bf415210de357ce552833c724e39c9d61043fd10151dd7a22"
url "https://bombich.scdn1.secure.raxcdn.com/software/files/ccc-#{version}.zip",
verified: "bombich.scdn1.secure.raxcdn.com/software/files/"
name "Carbon Copy Cloner 5"
desc "Hard disk backup and cloning utility"
homepage "https://bombich.com/"
livecheck do
url "https://bombich.com/software/updates/ccc.php?os_major=11&os_minor=6&os_bugfix=0&ccc=6000&beta=0&locale=en"
strategy :json do |json|
version = json.dig("stable", "version")
build = json.dig("stable", "build")
next if version.blank? || build.blank?
"#{version}.#{build}"
end
end
auto_updates true
conflicts_with cask: "carbon-copy-cloner"
app "Carbon Copy Cloner.app"
uninstall quit: [
"com.bombich.ccc",
"com.bombich.cccuseragent",
],
login_item: "CCC User Agent"
zap trash: [
"/Library/LaunchDaemons/com.bombich.ccchelper.plist",
"~/Library/Application Support/com.bombich.ccc",
"~/Library/Caches/com.bombich.ccc",
"~/Library/Preferences/com.bombich.ccc.plist",
"~/Library/Preferences/com.bombich.cccuseragent.plist",
"~/Library/Saved Application State/com.bombich.ccc.savedState",
]
end