Distribution Overview分发概览
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打包
To distribute your app with Electron, you need to package all your resources and assets into an executable and rebrand it. 要使用Electron分发应用程序,您需要将所有资源和资产打包到可执行文件中,并重新命名。To do this, you can either use specialized tooling 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's auto-updater allows you to deliver application updates to users without forcing them to manually download new versions of your application. Electron的自动更新程序允许您向用户交付应用程序更新,而无需强制用户手动下载应用程序的新版本。Check out the Updating Applications guide for details on implementing automatic updates with Electron.有关使用Electron实现自动更新的详细信息,请参阅更新应用程序指南。