electron-builder
electron-builder copied to clipboard
feat: Introducing deb and rpm auto-updates [WIP]
[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
🦋 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
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...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
@develar what are your thoughts on this?