File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 33RUNNING_MARKER_FILE=" /tmp/coder_desktop_running"
44VPN_MARKER_FILE=" /tmp/coder_vpn_was_running"
55
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+
610# Restart Coder Desktop if it was running before
711if [ -f " $RUNNING_MARKER_FILE " ]; then
812 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..."
3535osascript -e ' if app id "com.coder.Coder-Desktop" is running then' -e ' quit app id "com.coder.Coder-Desktop"' -e ' end if'
3636echo " Done."
3737
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+
3845exit 0
You can’t perform that action at this time.
0 commit comments