分布概览
一旦你的应用准备好投入生产,在交付给用户之前,你需要采取几个步骤。
🌐 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.