forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adobe-creative-cloud.rb
124 lines (117 loc) · 5.51 KB
/
adobe-creative-cloud.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
cask "adobe-creative-cloud" do
version "5.3.1.470"
sha256 "9e0c49b0078f2ad76129185ddfb3467a8061c7e160e71b877617f899fca62d5a"
url "https://ccmdl.adobe.com/AdobeProducts/KCCC/CCD/#{version.major_minor_patch.dots_to_underscores}/osx10/ACCCx#{version.dots_to_underscores}.dmg"
name "Adobe Creative Cloud"
desc "Collection of apps and services for photography, design, video, web, and UX"
homepage "https://www.adobe.com/creativecloud.html"
auto_updates true
installer script: {
executable: "#{staged_path}/Install.app/Contents/MacOS/Install",
args: ["--mode=silent"],
sudo: true,
print_stderr: false,
}
uninstall_preflight do
set_ownership "/Library/Application Support/Adobe"
end
uninstall_postflight do
stdout, * = system_command "/bin/launchctl", args: ["print", "gui/#{Process.uid}"]
ccx_processes = stdout.lines.grep(/com\.adobe\.CCXProcess\.\d{5}/) { Regexp.last_match(0) }.uniq
ccx_processes.each { |id| system "/bin/launchctl", "bootout", "gui/#{Process.uid}/#{id}" }
end
uninstall early_script: {
executable: "/usr/bin/pluginkit",
args: [
"-r", "/Applications/Utilities/Adobe Sync/CoreSync/Core Sync.app/Contents/PlugIns/ACCFinderSync.appex"
],
must_succeed: false,
print_stderr: false,
},
launchctl: [
"Adobe_Genuine_Software_Integrity_Service",
"com.adobe.AdobeCreativeCloud",
"com.adobe.acc.installer",
"com.adobe.acc.installer.v2",
"com.adobe.ccxprocess",
],
quit: "com.adobe.acc.AdobeCreativeCloud",
signal: [["QUIT", "com.adobe.accmac"]],
script: {
executable: "/usr/bin/pkill",
args: ["Adobe Desktop Service", "AdobeIPCBroker", "AdobeCRDaemon"],
must_succeed: false,
},
delete: [
"#{appdir}/Adobe Creative Cloud/*Adobe Creative Cloud",
"#{appdir}/Adobe Creative Cloud/Icon?",
"#{appdir}/Adobe Creative Cloud/.Uninstall*",
"/Applications/Utilities/Adobe Creative Cloud*",
"/Applications/Utilities/Adobe Application Manager",
"/Applications/Utilities/Adobe Sync",
"/Applications/Utilities/Adobe Installers/Uninstall Adobe Creative Cloud",
"/Applications/Utilities/Adobe Installers/.Uninstall*",
"/Library/Application Support/Adobe/CEP/extensions/CC_*",
"/Library/Application Support/Adobe/CEP/extensions/com.adobe.ccx.*",
"/Library/Application Support/Adobe/Adobe Desktop Common",
"/Library/Application Support/Adobe/AdobeApplicationManager",
"/Library/Application Support/Adobe/AdobeGC*",
"/Library/Application Support/Adobe/*[Ii]nstall*",
"/Library/Application Support/Adobe/ADCRefs",
"/Library/Application Support/Adobe/caps",
"/Library/Application Support/Adobe/OOBE",
"/Library/Application Support/Adobe/PCF",
"/Library/Application Support/Adobe/SL*",
"/Library/Application Support/Adobe/Vulcan",
"/Library/Application Support/regid.*.com.adobe",
"~/Library/Application Support/Adobe/AAMUpdater",
"~/Library/Application Support/Adobe/ExtensibilityLibrary",
"~/Library/Application Support/Adobe/FloodGate",
"~/Library/Application Support/Adobe/.adobelicnotification",
"~/Library/Application Support/CrashReporter/AdobeCRDaemon_*.plist",
"~/Library/Application Scripts/com.adobe.accmac.ACCFinderSync",
"~/Library/*/Adobe/CoreSync",
"/Library/*/com.adobe.acc*",
"~/Library/*/com.adobe.acc*",
"/Library/Preferences/com.adobe.headlights*.plist",
"~/Library/Preferences/com.adobe.crashreporter.plist",
"~/Library/Preferences/Adobe/.[A-Z0-9]???????????",
"/Library/LaunchDaemons/com.adobe.agsservice.plist",
"~/Library/LaunchAgents/com.adobe.ccxprocess.plist",
"~/Library/Group Containers/Adobe-Hub-App",
"/Library/Internet Plug-Ins/AdobeAAMDetect.plugin",
"~/Creative Cloud Files/Icon?",
"/Users/Shared/Adobe/Installer",
"/Users/Shared/Adobe/OOBE",
],
rmdir: [
"#{appdir}/Adobe Creative Cloud",
"/Applications/Utilities/Adobe Installers",
"/Library/Application Support/Adobe{/CEP{/extensions,},}",
"/Library/*/Adobe",
"~/Library/*/Adobe",
"~/Creative Cloud Files",
"/Users/Shared/Adobe",
]
zap trash: [
"/Library/Application Support/Adobe/Extension Manager CC",
"~/Library/Application Support/Adobe/Extension Manager CC",
"~/Library/Application Support/Adobe/OOBE",
"/Library/Application Support/Adobe/Creative Cloud Libraries",
"/Library/Application Support/Adobe/Adobe PCD",
"/Library/Logs/CreativeCloud",
"~/Library/Logs/CreativeCloud",
"~/Library/Logs/ACC*.log",
"~/Library/Logs/PDApp*.log",
"~/Library/Logs/AdobeDownload.log",
"~/Library/Logs/AdobeIPCBroker*.log",
"~/Library/Logs/CoreSyncInstall.log",
"~/Creative Cloud Files",
],
rmdir: [
"/Library/Application Support/Adobe",
"~/Library/Application Support/Adobe",
"/Library/Logs/Adobe",
"~/Library/Logs/Adobe",
]
end