Electron-builder: Error: ditto: Couldn't read PKZip signature

Created on 10 Jun 2016  ยท  13Comments  ยท  Source: electron-userland/electron-builder

I am code signing from an OSX build server (Jenkins) and am getting this error whenever my app tries to use autoUpdater to update itself, on OSX. I am uploading both the -mac.zip and .dmg to Github. I download one of my .dmg files, install it, then open it, and get this error. Did I have to export the certificate in my npm script in order for it to work?

deployment mac question

Most helpful comment

@mzmousa If you store your assets in a public GitHub repo you can set environment variables to tell Nuts to redirect requests

https://github.com/GitbookIO/nuts/blob/master/bin/web.js#L28

Simply set the environment variable DONT_PROXY_ASSETS to be anything you want. I set mine to true just to be somewhat logical ๐Ÿ‘

All 13 comments

Did I have to export the certificate in my npm script in order for it to work?

Do you mean that problem is that your app is not signed correctly? Do you see "Signing ..." in your build log? Use https://itunes.apple.com/us/app/rb-app-checker-lite/id519421117?mt=12 to check app.

I _do_ see "signing..." in my build log. I used the app you linked to check, and my app is signed correctly. Could there be any other reason for this? I'm pretty sure it's an issue with Squirrel.Mac...

Checked โ€“ update works for my app. So, it is not an electron-builder regression issue.

Okay, it ended up working for some reason after I restarted my release server. May I ask what you're using for your release server for your app? I'm using Nuts... Did you come across better alternatives (from your experience)?

@mzmousa Nut's caches resources locally, so if you changed the zip file nuts will not fetch the new one until it is restarted

@MarshallOfSound Damn...if I need to frequently restart the sever, that will be problematic. I'll either try to figure out how to clear the Nuts cache or I'll just make sure my windows builds are perfect :laughing:

Well... Yeah... In theory you shouldn't be uploading bad builds ๐Ÿ˜•

You can change nuts to proxy to a public GitHub releases section if that's what you want? Then you don't need to worry about it's internal cache,

I use nuts and restart server every release ;) See recommended servers https://github.com/electron/electron/blob/master/docs/api/auto-updater.md You can try https://github.com/Aluxian/squirrel-updates-server

Did you come across better alternative

For now I have no time to try โ€” nuts works after restart.

@MarshallOfSound could you elaborate on the public releases thing and not storing internal caches? Or where I could read about that?

Nuts doesn't just redirect requests to GitHub to support private github repositories. If your repo is public, I think https://github.com/Aluxian/squirrel-updates-server is a better solution.

@mzmousa If you store your assets in a public GitHub repo you can set environment variables to tell Nuts to redirect requests

https://github.com/GitbookIO/nuts/blob/master/bin/web.js#L28

Simply set the environment variable DONT_PROXY_ASSETS to be anything you want. I set mine to true just to be somewhat logical ๐Ÿ‘

@develar Can you help with following issue?
I am using private github repository for keeping my releases and for auto-update feature.
I am getting following issue:

[13:12:2018][19:47:55:187]New version 1.3.0 has been downloaded to /Users/Library/Application Support/Caches/project1-updater/pending/update.zip
[13:12:2018][19:47:55:236]/ requested
[13:12:2018][19:47:55:242]/1544710675192-8651.zip requested
[13:12:2018][19:47:55:242]/1544710675192-8651.zip requested by Squirrel.Mac, pipe /Users/Library/Application Support/Caches/project1-updater/pending/update.zip
[13:12:2018][19:47:55:673]Error: ditto: Couldn't read PKZip signature

[13:12:2018][19:47:55:674]Error: Error: ditto: Couldn't read PKZip signature
[13:12:2018][19:47:55:674]Error: ditto: Couldn't read PKZip signature

[13:12:2018][19:48:00:541]Proxy server for native Squirrel.Mac is closed (was started to download https://api.github.com/repos/Jarfus/project1/releases/assets/10112663)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

xingoxu picture xingoxu  ยท  3Comments

talarari picture talarari  ยท  3Comments

NPellet picture NPellet  ยท  3Comments

antonycourtney picture antonycourtney  ยท  3Comments

mstralka picture mstralka  ยท  3Comments