File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 3
3
RUNNING_MARKER_FILE=" /tmp/coder_desktop_running"
4
4
VPN_MARKER_FILE=" /tmp/coder_vpn_was_running"
5
5
6
+ # Before this script, or the user opens the app, make sure
7
+ # Gatekeeper has ingested the notarization ticket.
8
+ spctl -avvv " /Applications/Coder Desktop.app"
9
+
6
10
# Restart Coder Desktop if it was running before
7
11
if [ -f " $RUNNING_MARKER_FILE " ]; then
8
12
echo " Starting Coder Desktop..."
Original file line number Diff line number Diff line change @@ -35,4 +35,11 @@ echo "Asking com.coder.Coder-Desktop to quit..."
35
35
osascript -e ' if app id "com.coder.Coder-Desktop" is running then' -e ' quit app id "com.coder.Coder-Desktop"' -e ' end if'
36
36
echo " Done."
37
37
38
+ APP=" /Applications/Coder Desktop.app"
39
+ if [ -d " $APP " ]; then
40
+ echo " Deleting Coder Desktop..."
41
+ rm -rf " $APP "
42
+ echo " Done."
43
+ fi
44
+
38
45
exit 0
You can’t perform that action at this time.
0 commit comments