Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: ditto: Couldn't read PKZip signature #486

Closed
mzmousa opened this issue Jun 10, 2016 · 14 comments
Closed

Error: ditto: Couldn't read PKZip signature #486

mzmousa opened this issue Jun 10, 2016 · 14 comments

Comments

@mzmousa
Copy link

mzmousa commented Jun 10, 2016

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?

@develar
Copy link
Member

develar commented Jun 10, 2016

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.

@mzmousa
Copy link
Author

mzmousa commented Jun 10, 2016

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...

@develar
Copy link
Member

develar commented Jun 11, 2016

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

@mzmousa
Copy link
Author

mzmousa commented Jun 12, 2016

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)?

@MarshallOfSound
Copy link
Member

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

@mzmousa
Copy link
Author

mzmousa commented Jun 12, 2016

@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 😆

@MarshallOfSound
Copy link
Member

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,

@develar
Copy link
Member

develar commented Jun 12, 2016

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

@develar
Copy link
Member

develar commented Jun 12, 2016

Did you come across better alternative

For now I have no time to try — nuts works after restart.

@mzmousa
Copy link
Author

mzmousa commented Jun 12, 2016

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

@develar
Copy link
Member

develar commented Jun 12, 2016

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.

@MarshallOfSound
Copy link
Member

MarshallOfSound commented Jun 12, 2016

@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 👍

@apurvaSynerzip
Copy link

apurvaSynerzip commented Dec 13, 2018

@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)

@rayisooo
Copy link

did anybody find a fix im getting this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants