We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
path: free-apple-electron-autoupdater
在 macOS 下,autoUpdater 使用的 Squirrel.Mac 要求应用必须进行代码签名,否则 macOS 出于安全性原因无法判断程序的修改是否来自攻击者 electron-osx-sign 支持在 macOS 为 electron 应用进行签名,electron-packager 内置了这一功能,只需指定 osxSign: true 即可。但是这种情况下,electron-osx-sign 默认只会使用 Developer ID 类型的代码签名,这类签名只有 Apple Developer Program 的年费会员才能签出。 普通的 Apple 开发者账户可以签出 Mac Developer 类型的签名用于调试。这种情况下可以手动指定签名给 electron-osx-sign
autoUpdater
Squirrel.Mac
electron-osx-sign
electron-packager
osxSign: true
security find-identity -p codesigning -v
spctl --master-disable
osxSign: {identity: 'Mac Developer: [name] ([hash])'}
参考:electron-userland/electron-builder#890
The text was updated successfully, but these errors were encountered:
补充:macOS Catalina 之后,XCode 不再生成 Mac Developer 类型的签名,而是使用 Apple Development 代替,其他不变
Sorry, something went wrong.
No branches or pull requests
path: free-apple-electron-autoupdater
在 macOS 下,
autoUpdater
使用的Squirrel.Mac
要求应用必须进行代码签名,否则 macOS 出于安全性原因无法判断程序的修改是否来自攻击者electron-osx-sign
支持在 macOS 为 electron 应用进行签名,electron-packager
内置了这一功能,只需指定osxSign: true
即可。但是这种情况下,electron-osx-sign
默认只会使用 Developer ID 类型的代码签名,这类签名只有 Apple Developer Program 的年费会员才能签出。普通的 Apple 开发者账户可以签出 Mac Developer 类型的签名用于调试。这种情况下可以手动指定签名给
electron-osx-sign
security find-identity -p codesigning -v
命令确认spctl --master-disable
禁用默认的逻辑electron-packager
的选项中指定osxSign: {identity: 'Mac Developer: [name] ([hash])'}
参考:electron-userland/electron-builder#890
The text was updated successfully, but these errors were encountered: