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

feat(updater): Dispatch error in updater if spawnSync fails #8817

Merged

Conversation

Akatroj
Copy link
Contributor

@Akatroj Akatroj commented Jan 29, 2025

Copy link

changeset-bot bot commented Jan 29, 2025

🦋 Changeset detected

Latest commit: 45d31b5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
electron-updater Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Akatroj Akatroj changed the title Dispatch error if spawnSync fails Dispatch error in updater if spawnSync fails Jan 29, 2025
@Akatroj Akatroj changed the title Dispatch error in updater if spawnSync fails feat: Dispatch error in updater if spawnSync fails Jan 29, 2025
@Akatroj Akatroj changed the title feat: Dispatch error in updater if spawnSync fails feat(updater): Dispatch error in updater if spawnSync fails Jan 29, 2025
@mmaietta
Copy link
Collaborator

mmaietta commented Feb 4, 2025

@Akatroj have you tested each/any flow on a Linux device/VM for this change?

@Akatroj
Copy link
Contributor Author

Akatroj commented Feb 4, 2025

I tested this change on a ubuntu device with DebUpdater (using pkexec) and with a custom updater I'm using for an internal app (basically a wrapper for DebUpdater, but instead of calling dpkg directly, calls a local script which calls dpkg, but can run as sudo without prompting for password).

There was no impact for happy case when updates succeed and useful logging in case it failed:
Screenshot 2025-02-04 at 10 32 35

@mmaietta mmaietta merged commit ea3e0f5 into electron-userland:master Feb 18, 2025
15 checks passed
@github-actions github-actions bot mentioned this pull request Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants