我一直在努力为Mac OS X的Electron Application设置正确的自动更新程序(对于Windows,它可以正常运行)
- I generated Developer ID Application and Developer ID Installer from Xcode and export both certificates into single one using KeyChain.
- Set type: "distribution" in package.json
- Runned the following command CSC_LINK=PATH_TO_MY_P12_CERTIFICATE_FILE yarn dist
- All content from ./dist folder copied to the amazon s3 proper place.
无论如何,在启动可以在服务器上正确找到更新的应用程序的旧版本之后,都会返回以下问题:
"Code signature at URL ... did not pass validation: code object is not signed at all"
我该如何解决这个问题?
最佳答案
幸运的是,我找到了解决方案。我在项目中包含了多个依赖项(golang服务器,ffmpeg,AppleScript)。这是由额外的依赖关系(AppleScript)引起的。再次将文件另存为应用程序(仅运行,.app扩展名)解决了该问题。
这是 Electron 生成器页面上的票证的链接,在该页面上我张贴了我执行的所有步骤:enter link description here
关于macos - Electron 应用程序自动更新程序(签名应用程序),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47889237/