Skip to main content

分布概览

一旦你的应用准备好投入生产,你需要执行几个步骤才能将其交付给用户。

¥Once your app is ready for production, there are a couple steps you need to take before you can deliver it to your users.

封装

¥Packaging

要使用 Electron 分发你的应用,你需要将所有资源和资源打包到可执行文件中并重新命名。为此,你可以使用 Electron Forge 等专用工具或手动执行。有关详细信息,请参阅 应用封装 教程。

¥To distribute your app with Electron, you need to package all your resources and assets into an executable and rebrand it. To do this, you can either use specialized tooling like Electron Forge or do it manually. See the Application Packaging tutorial for more information.

代码签名

¥Code signing

代码签名是一种安全技术,用于证明应用是由你创建的。你应该对你的应用进行签名,以便它不会触发用户操作系统的安全检查。

¥Code signing is a security technology that you use to certify that an app was created by you. You should sign your application so it does not trigger the security checks of your user's operating system.

要开始每个操作系统的代码签名过程,请阅读 代码签名 文档。

¥To get started with each operating system's code signing process, please read the Code Signing docs.

发布

¥Publishing

一旦你的应用打包并签名,你就可以通过在线上传安装程序将你的应用直接免费分发给用户。

¥Once your app is packaged and signed, you can freely distribute your app directly to users by uploading your installers online.

为了覆盖更多用户,你还可以选择将应用上传到每个操作系统的数字分发平台(即应用商店)。除了直接下载应用之外,这些还需要另一个构建步骤。有关更多信息,请查看每个单独的应用商店指南:

¥To reach more users, you can also choose to upload your app to each operating system's digital distribution platform (i.e. app store). These require another build step aside from your direct download app. For more information, check out each individual app store guide:

更新

¥Updating

Electron 的自动更新程序允许你向用户提供应用更新,而无需强迫他们手动下载应用的新版本。查看 更新应用 指南,了解有关使用 Electron 实现自动更新的详细信息。

¥Electron's auto-updater allows you to deliver application updates to users without forcing them to manually download new versions of your application. Check out the Updating Applications guide for details on implementing automatic updates with Electron.