Appimages
You can use electron-builder to create applications to install or automatically update the application on almost any Linux distribution.
AppImage is a universal software package format. By packaging software in AppImage, the developer provides only one file to manage them all. The end user, that is, you, can use it in most (if not all) modern Linux distributions
If you want to automatically update your application, you will also need electron-autoupdater . Objectives:
- MacOS: DMG.
- Linux: AppImage
- Windows: NSIS
You can find an example project that uses this here . Important files: package.json , updater.js , updater_renderer.js
Using some of these instructions, you can create installers:
yarn electron-builder --linux --x64 yarn dist_linux
deb, rpm
You can create packages like deb or rpm using electron-builder , but automatically updating them depends on how you distribute them, as Jens says in his answer. The end user may need to add the apt repository to stay informed.
source share