使用 Electron Forge 分发应用程序

Electron Forge is a tool for packaging and publishing Electron applications. 它将 Electron 的构建工具生态系统统一到一个可扩展的界面中,这样每个人都可以直接上手制作 Electron 应用。

入门指南

Electron Forge文档 包含关于将您的应用程序从源代码带到您的终端用户机器的详细信息。 这包括:

  • 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.

寻求帮助

  • 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.