Code Signing代码签名

Configure Code Signing with Electron Forge使用Electron Forge配置代码签名

Code signing is a security technology that you use to certify that an app was created by you. 代码签名是一种安全技术,用于证明应用程序是由您创建的。If you are building an Electron app that you intend to package and distribute, it should be code signed so it does not trigger any operating system security checks. 如果你正在构建一个打算打包和分发的Electron应用程序,它应该是代码签名的,这样它就不会触发任何操作系统安全检查。This step is highly recommended if you want to distribute your app publicly as code signing is an important security concept on both macOS and Windows.如果您想公开分发应用程序,强烈建议您执行此步骤,因为代码签名在macOS和Windows上都是一个重要的安全概念。

This guide is split into two separate pages because there is a separate process for each platform:本指南分为两个单独的页面,因为每个平台都有一个单独的流程:

Signing a macOS app签署macOS应用程序
Signing a Windows app签署Windows应用