chris
chris

Reputation: 58

AutoUpdater for Electron application (signed application)

I have been struggling with setting correct auto-updater for my Electron Application for Mac OS X (for Windows it works properly)

  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.

Anyway after launching old version of application which properly finds the update on the server, returns the following problem:

"Code signature at URL ... did not pass validation: code object is not signed at all"

How can I resolve this issue?

Upvotes: 1

Views: 1084

Answers (1)

chris
chris

Reputation: 58

Fortunately, I found the solution. I had multiple dependencies included in the project (golang server, ffmpeg, AppleScript). It was caused by extra dependency (AppleScript). Saving the file again as application (run only, .app extension) fixed the problem.

Here's the link to the ticket on electron-builder page, where i post all steps that i made: enter link description here

Upvotes: 1

Related Questions