electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

feat: Introducing deb and rpm auto-updates [WIP]

Open mmaietta opened this issue 1 year ago • 3 comments

[Draft] Utilizes GUI-based sudo for installation which is pulled via which gksudo || which kdesudo || which pkexec || which beesu and executed using /bin/bash -c in order to coalesce all commands under a single sudo prompt Deb is fairly straightforward and evals to this:

`which dnf || which yum` -i path-to-update.deb || apt-get install --fix-broken -y

Rpm requires one of these package managers available: zypper, dnf, yum

zypper -y remove AppName; zypper -y install path-to-update.rpm

js is optimized, but the shell cmd basically is:

`which dnf || which yum` remove -y AppName;
`which dnf || which yum` clean --all;
`which dnf || which yum` --no-refresh install --allow-unsigned-rpm -y -f path-to-update.rpm

Testing still in progress on Ubuntu 14/18/20/22 and Fedora 32. No clue what else to test on, suggestions would be appreciated

Things I could use help/verification on:

  • idk if --allow-unsigned-rpm is a good idea, but that's what I use in my home project.
  • are those enough package managers to cover?

Note: This would need to go through a significant alpha version stage for electron-builder

mmaietta avatar Aug 12 '22 20:08 mmaietta

🦋 Changeset detected

Latest commit: b8bd2ae344c9e2ad2910de9ddd4c0419a9fb12b7

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

This PR includes changesets to release 9 packages
Name Type
app-builder-lib Minor
electron-updater Minor
dmg-builder Minor
electron-builder-squirrel-windows Minor
electron-builder Minor
electron-forge-maker-appimage Minor
electron-forge-maker-nsis-web Minor
electron-forge-maker-nsis Minor
electron-forge-maker-snap 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

changeset-bot[bot] avatar Aug 12 '22 20:08 changeset-bot[bot]

Deploy Preview for car-park-attendant-cleat-11576 ready!

Name Link
Latest commit b8bd2ae344c9e2ad2910de9ddd4c0419a9fb12b7
Latest deploy log https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/635778ab11eecb00096e6989
Deploy Preview https://deploy-preview-7060--car-park-attendant-cleat-11576.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Aug 12 '22 20:08 netlify[bot]

@develar what are your thoughts on this?

mmaietta avatar Aug 12 '22 22:08 mmaietta