forked from github/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall-app.sh
More file actions
executable file
·35 lines (27 loc) · 1.28 KB
/
uninstall-app.sh
File metadata and controls
executable file
·35 lines (27 loc) · 1.28 KB
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
#!/usr/bin/env bash
#
# Uninstall the application and remove the settings and permissions
#
# Usage: ./uninstall-app.sh
# Remove the settings and permissions (should happen before removing the app)
tccutil reset All com.github.CopilotForXcode
tccutil reset All com.github.CopilotForXcode.ExtensionService
# Remove dev versions as well
tccutil reset All dev.com.github.CopilotForXcode
tccutil reset All dev.com.github.CopilotForXcode.ExtensionService
# Remove launch agent
launchctl remove com.github.CopilotForXcode.CommunicationBridge
launchctl remove dev.com.github.CopilotForXcode.CommunicationBridge
# Remove app
rm -rf /Applications/Copilot\ for\ Xcode.app
rm -rf /Applications/GitHub\ Copilot\ for\ Xcode.app
# Remove user preferences
rm -f ~/Library/Preferences/com.github.CopilotForXcode.plist
rm -f ~/Library/Preferences/com.github.CopilotForXcode.ExtensionService.plist
rm -f ~/Library/Preferences/dev.com.github.CopilotForXcode.plist
rm -f ~/Library/Preferences/dev.com.github.CopilotForXcode.ExtensionService.plist
defaults delete com.github.CopilotForXcode
defaults delete dev.com.github.CopilotForXcode
defaults delete VEKTX9H2N7.group.com.github.CopilotForXcode.prefs
defaults delete VEKTX9H2N7.group.dev.com.github.CopilotForXcode.prefs
echo 'Finished uninstalling Copilot for Xcode'