macos - Electron 应用程序自动更新程序(签名应用程序)

标签 macos electron

我一直在努力为Mac OS X的Electron Application设置正确的自动更新程序(对于Windows,它可以正常运行)

  1. I generated Developer ID Application and Developer ID Installer from Xcode and export both certificates into single one using KeyChain.
  2. Set type: "distribution" in package.json
  3. Runned the following command CSC_LINK=PATH_TO_MY_P12_CERTIFICATE_FILE yarn dist
  4. 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/

相关文章:

macos - 如何使用鼠标在 tmux 中滚动?

macos - 适用于 Mac OS X 的 openAL 教程

ios - 是否有 iOS 模拟器的服务器托管版本?或 : How to use an iOS app without Mac and iOS devices

electron - 找不到模块 : Error: Can't resolve 'fs' - Electron

reactjs - React 组件构造函数中的 ipcRenderer

macos - 中间状态期间的 NSProgressIndicator 动画

swift - 如何使嵌入式 View Controller 成为响应者链的一部分?

electron - 如何防止 Electron 的 Chromium 在获取请求上强制使用 HTTPS?

node.js - 在树莓派 3 上安装 Electron js 时出现问题

angular - 在 Angular 2 TypeScript 应用程序中加载 Electron 模块