assaf / node-passbook

iOS Passbook for the Node hacker
MIT License
280 stars 73 forks source link

Can't use the pkpass on a windows device #33

Open ghost opened 9 years ago

ghost commented 9 years ago

Hi, First of all thank for the library, it's great piece of work.

I noticed that when I generate a passbook file and open it on a Windows Phone (8.1) with the app myPasses, the app can't read the passbook file and displays the next error: "Library cannot extract this entry. Version is required (4884)".

When I open the same passbook file on an iPhone it works without any problem. If I would send the passbook file from my iPhone via email to my windows phone then it also opens without any problem.

This would give me the impression that something is different when creating the zip file with all the included files. To further investigate this I tried to do the next thing on my mac laptop:

zip -v fails.pkpass this gives me:

zip warning: needs unzip 2.0 on system type 19: pass.json zip warning: needs unzip 2.0 on system type 19: background.png zip warning: needs unzip 2.0 on system type 19: background@2x.png zip warning: needs unzip 2.0 on system type 19: icon.png zip warning: needs unzip 2.0 on system type 19: icon@2x.png zip warning: needs unzip 2.0 on system type 19: logo.png zip warning: needs unzip 2.0 on system type 19: logo@2x.png zip warning: needs unzip 2.0 on system type 19: manifest.json zip warning: needs unzip 2.0 on system type 19: signature

If I send the same passbook file from my passbook app to my laptop and do the same:

zip -v works.pkpass => no warnings

Any idea if this could be fixed?

Thanks in advance