macos - Electron-forge 和 osx 签名应用程序导致“二进制文件签名不正确”。
问题描述
解决方案
我使用本教程解决了这个问题:https ://kilianvalkhof.com/2019/electron/notarizing-your-electron-application/
而这个问题https://github.com/electron-userland/electron-builder/issues/3940
我的最终配置是:
osxSign: {
identity: 'Developer ID Application: MyTeam (TEAMID)',
'hardened-runtime': true,
entitlements: 'mac/entitlements.plist',
'entitlements-inherit': 'mac/entitlements.plist',
'signature-flags': 'library',
// https://github.com/electron/electron-notarize/issues/54
'gatekeeper-assess': false,
verbose: true,
},
osxNotarize: {
appleId: 'myemail',
appleIdPassword: 'mypassword',
},
并且mac/entitlements.plist
是:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
</plist>
推荐阅读
- python - Selenium with Python - 如何让它一次填写一个文本框
- python - 当scrapy遇到403状态码时如何自动使用代理?
- node.js - 可以不对人们正在测试我的节点/快速站点的 url 发送响应吗?
- javascript - javascript中的resolve,reject关键字是什么?
- cookies - 饼干在
似乎不起作用 - ios - 在 iOS 13 中,UITabBarItem 的 standardAppearance 应用于所有其他项目
- java - 如何使用 MOXy Dynamic JAXB 查找是否需要 XSD 元素?
- r - 如何找出逗号在 R 的数据框中的单列中连续出现的最大数量?
- scala - Scala CRUD pojo 生成
- javascript - discord js,使提到的用户耳聋