nwjs / nw.js

Call all Node.js modules directly from DOM/WebWorker and enable a new way of writing applications with all Web technologies.
https://nwjs.io
MIT License
40.34k stars 3.88k forks source link

Cannot extract package Failed to unzip the package file: xxx.nw #1493

Closed Crisisyun closed 10 years ago

Crisisyun commented 10 years ago

After package

cjx186 commented 10 years ago

I also the same problem, xxx.nw too big? not unpacked my xxx.nw, is 2MB Cannot extract package

Crisisyun commented 10 years ago

The bug maybe there's some error about your files name.Please make sure your files name is all lower and no number.

kostia commented 10 years ago

Same issue. I followed https://github.com/rogerwang/node-webkit/blob/master/README.md#quick-start

meanliang commented 10 years ago

I come across the same question, so how to solve it!

mozillanerd commented 10 years ago

I am also unable to unzip. Could it be the program used to create zip. I am on linux, installed p7zip-full via sudo apt-get install p7zip-full and zipped via command 7z a hello_app.7z index.html package.json then renamed as specified mv hell_app.7z app.nw.

mozillanerd commented 10 years ago

The problem for me is using the incorrect zip program. I removed the app.nw file, in the hello-world folder I issue zip data * then rename data.zip to app.nw. WORKS

Mithgol commented 10 years ago

@mozillanerd You can still use 7z, just don't forget the -tzip switch for it to generate .zip file instead of .7z.

smaltdd commented 10 years ago

I have same issue. Using following steps could be successful. Step 1: D:\node-webkit-v0.9.2-win-ia32 folder i created two files: index.html and package.json. I used 7z to compress it. Step 2: in CMD(window) you move pointer to node-webkit-v0.9.2-win-ia32 folder and run: nw app.nw

Have a good success!!!

konimaki commented 10 years ago

¡¡Solved!! It`s not zip program trouble.

Look for hidden files name ending with ~ and delete all. I found some of them inside node_modules subdirectories.

They're backup files from linux files, not really needed by the app.

laike9m commented 10 years ago

met same problem...

imkevinyang commented 10 years ago

i come across the same problem, and manage to solve it by replace those Chinese file name to english. Guess NodeWebKit zip module dosen't quite support unicode path, which is common issue for many software.

smolleyes commented 10 years ago

hi

may be cool to ignore files ending with ~ too seems problematic on osX ...

thanks

Le 10/10/2014 07:08, imkevinyang a écrit :

i come across the same problem, and manage to solve it by replace those Chinese file name to english. Guess NodeWebKit zip module dosen't quite support unicode path, which is common issue for many software.

— Reply to this email directly or view it on GitHub https://github.com/rogerwang/node-webkit/issues/1493#issuecomment-58613138.

BahgatMashaly commented 9 years ago

put the path between double quotation like this nw "D:\program files............"

rockedpanda commented 8 years ago

Got the same problem, and fixed by checking all the filenames in folder. By doing testing on windows, found that: 1 all file name in normal characters, its ok 2 name with Chinese\Japanese characters will fail to unzip by nw

some test case here(in windows 8 & nwjs-v0.12.0-win-x64) index.html + package.json ................................ OK index.html + package.json + ~.txt......................OK index.html + package.json + ~~........................ OK index.html + package.json + ~~.~ .....................OK index.html + package.json + 中文.txt ..............Failed index.html + package.json + Françai................OK index.html + package.json + 日本語.txt............Failed

not test in linux yet.