Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor installer to be a PKG #83

Closed
ThomasK33 opened this issue Feb 27, 2025 · 2 comments · Fixed by #92
Closed

Refactor installer to be a PKG #83

ThomasK33 opened this issue Feb 27, 2025 · 2 comments · Fixed by #92
Assignees
Labels
bug Something isn't working

Comments

@ThomasK33
Copy link
Member

We are currently experiencing issues with the installation and upgrade of Coder Desktop. Specifically, we are encountering this issue, where some component of macOS becomes confused during an update, resulting in a faulty state for both us and the operating system.

We must refactor our installation method to use a package with a pre-install script. This script should:

  • Shut down the network extension
  • Shut down the desktop client
  • Check for any existing Homebrew installations (multiple installations of the network extension can cause issues on macOS)

Implementing these steps should help prevent any disruptions during upgrades.

@ThomasK33 ThomasK33 added the bug Something isn't working label Feb 27, 2025
@ThomasK33 ThomasK33 self-assigned this Feb 27, 2025
@ethanndickson
Copy link
Member

ethanndickson commented Mar 6, 2025

More relevant threads on the weird behaviour we've been seeing:
https://developer.apple.com/forums/thread/711713 (from above)
https://developer.apple.com/forums/thread/667597
https://developer.apple.com/forums/thread/742992
https://developer.apple.com/forums/thread/728063?answerId=751243022#751243022

Essentially, on-upgrade, the app becomes unable to communicate with the network extension.
This can lead to a incorrect UI state:

Image

Or consistent errors on functionality that requires communcation between the two, such as:

Image

@ThomasK33 ThomasK33 linked a pull request Mar 6, 2025 that will close this issue
ethanndickson added a commit that referenced this issue Mar 18, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…ss` during postinstall (#112)

Relates to #83.

It looks like deleting the app does indeed kill the NE process, so we should do that during `preinstall`.

In case the XPC issue we've been seeing is due to a race between the app being opened, and Gatekeeper ingesting the notarization ticket, we'll also force Gatekeeper to read the ticket by running `spctl -a` on the app bundle, and the extension bundle. The latter always fails, but an attempt to read it can't hurt.
@ethanndickson
Copy link
Member

Issue succeeded by #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants