Closed Ryan432 closed 1 month ago
@Ryan432 you should be able to:
Lmk if that works for you
@Bug-Reaper Thanks for explaining, I have just opened PR, you can find it here: https://github.com/electron-userland/electron-builder/pull/8400
Is there any ETA to when you will be able to release that update? Or can you suggest a way where I can already have a "beta" release of my fix so I can use that right now?
Thank you,
@Bug-Reaper Thanks for explaining, I have just opened PR, you can find it here: #8400
Is there any ETA to when you will be able to release that update? Or can you suggest a way where I can already have a "beta" release of my fix so I can use that right now?
Thank you,
@mmaietta is the maintainer, not @Bug-Reaper. You can take a look at the existing PRs to figure out when it will be merged. If you ask me, it's about 3 to 4 days.
@xyloflake Thanks.
@mmaietta Would love if you can look into it :)
@xyloflake Thanks.
@mmaietta Would love if you can look into it :)
I think he's on a vacation. Btw, autoupdates work fine for the .deb target in the app I work on. You can verify through the betas. Please note that the betas don't have an UI rn for the the autoupdates. You'll have to open muffon through the terminal to have a look at the log.
None of our users have a problem with the autoupdates.
@Bug-Reaper Thanks for explaining, I have just opened PR, you can find it here: https://github.com/electron-userland/electron-builder/pull/8400
Is there any ETA to when you will be able to release that update? Or can you suggest a way where I can already have a "beta" release of my fix so I can use that right now?
Thank you,
If you want this to immediately work for your app, create a patch. I'd recommend using pnpm patches. v25s are in alphas rn.
Weird that it works on your app, I have tried in multiple linux pcs and it never worked.
I will wait for the publish and build with a local package for now.
Now, if you take the Executing command, you will see that it's not really can be executed as can seen here:
@Ryan432 that's because you're running the command with no quotes after /usr/bin/pkexec.
That command was made by DebUpdater.js, not me, I copied that command to present the issue.
Of course with single quote it works and that exactly my fix.
@Ryan432 how are you determining that what you're executing was exactly what electron-updater was running?
I simulated a similar environment and it generates those quotes for me.
I determine it by application logs when running the app through the terminal.
The function spawnSyncLog
prints before executing.
I determine it by application logs when running the app through the terminal. The function
spawnSyncLog
prints before executing.
The logs don't show the single quotes either for me, but patching with a console.log prints the entire command with the single quotes.
@Ryan432 congratulations on getting the PR merged! I think you can close this now 😄
Once again, nice work, thank you for your contribution!!
@Ryan432 congratulations on getting the PR merged! I think you can close this now 😄
Once again, nice work, thank you for your contribution!!
Issue is closed, thank you :)
The auto updater is not updating correctly on Linux, Ubuntu 22.04.
So, in fact what happening is that when the update is finished to download, I open a dialog, after confirm I am executing the function
autoUpdate.quitAndInstall();
, then it's requesting for the password for the privilege, quitting the app and reopening but the update didn't happen.After long investigation, I have found that the install command in electron-updater is wrong and the bash cannot execute it.
Relevant logs:
Now, if you take the Executing command, you will see that it's not really can be executed as can seen here:
Relevant code: My auto updater implementation.
I found the problem in
packages/electron-updater/src/DebUpdater.ts
atdoInstall
function, I fixed it locally, it works, and I am ready to PR, just couldn't find way to open branch & PR.Here is the function scope after a fix:
After that fix, the auto-updater works correctly with no issues. Would love if will allow me to contribute and push that update asap.
Thank you.