diff --git a/pkgbuild/scripts/postinstall b/pkgbuild/scripts/postinstall index b7dd1bd3..8018af9c 100755 --- a/pkgbuild/scripts/postinstall +++ b/pkgbuild/scripts/postinstall @@ -3,6 +3,14 @@ RUNNING_MARKER_FILE="/tmp/coder_desktop_running" VPN_MARKER_FILE="/tmp/coder_vpn_was_running" +# Before this script, or the user, opens the app, make sure +# Gatekeeper has ingested the notarization ticket. +spctl -avvv "/Applications/Coder Desktop.app" +# spctl can't assess non-apps, so this will always return a non-zero exit code, +# but the error message implies at minimum the signature of the extension was +# checked. +spctl -avvv "/Applications/Coder Desktop.app/Contents/Library/SystemExtensions/com.coder.Coder-Desktop.VPN.systemextension" || true + # Restart Coder Desktop if it was running before if [ -f "$RUNNING_MARKER_FILE" ]; then echo "Starting Coder Desktop..." diff --git a/pkgbuild/scripts/preinstall b/pkgbuild/scripts/preinstall index 66c54e92..83271f3c 100755 --- a/pkgbuild/scripts/preinstall +++ b/pkgbuild/scripts/preinstall @@ -35,4 +35,11 @@ echo "Asking com.coder.Coder-Desktop to quit..." osascript -e 'if app id "com.coder.Coder-Desktop" is running then' -e 'quit app id "com.coder.Coder-Desktop"' -e 'end if' echo "Done." +APP="/Applications/Coder Desktop.app" +if [ -d "$APP" ]; then + echo "Deleting Coder Desktop..." + rm -rf "$APP" + echo "Done." +fi + exit 0
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: