Distributing Apps With Electron Forge
Electron Forge is a tool for packaging and publishing Electron applications. It unifies Electron's build tooling ecosystem into a single extensible interface so that anyone can jump right into making Electron apps.
If you do not want to use Electron Forge for your project, there are other third-party tools you can use to distribute your app.
These tools are maintained by members of the Electron community, and do not come with official support from the Electron project.
Uma "solução completa para empacotar e construir um aplicativo Electron pronto para distribuição" que foca em uma experiência integrada.
electron-builder adds a single dependency and manages all further requirements internally.
electron-builder substitui recursos e módulos usados pelos mantenedores do Electron (como o atualizador automático) por um personalizado.
A desktop app deployment tool that supports cross-building/signing of all packages from any OS without the need for multi-platform CI, can do synchronous web-style updates on each start of the app, requires no code changes, can use plain HTTP servers for updates and which focuses on ease of use. Conveyor replaces the Electron auto-updaters with Sparkle on macOS, MSIX on Windows, and Linux package repositories.
Conveyor is a commercial tool that is free for open source projects. There's an example of how to package GitHub Desktop which can be used for learning.
Guia de Introdução
The Electron Forge docs contain detailed information on taking your application from source code to your end users' machines. Isto inclui:
- Packaging your application (package)
- Generating executables and installers for each OS (make), and,
- Publishing these files to online platforms to download (publish).
For beginners, we recommend following through Electron's tutorial to develop, build, package and publish your first Electron app. If you have already developed an app on your machine and want to start on packaging and distribution, start from step 5 of the tutorial.
Você precisa de ajuda
- If you need help with developing your app, our community Discord server is a great place to get advice from other Electron app developers.
- If you suspect you're running into a bug with Forge, please check the GitHub issue tracker to see if any existing issues match your problem. If not, feel free to fill out our bug report template and submit a new issue.