evshiron / nwjs-builder

https://www.npmjs.com/package/nwjs-builder
76 stars 12 forks source link

Win64 production build : I keep having the default "blank" nwjs page #52

Closed marcelfalliere closed 8 years ago

marcelfalliere commented 8 years ago

Hello,

I'm on mac and using a VM to build for windows.

When I run nwb nwbuild -v 0.16.1 --production -p win64 -o bin-test4 ./ and start the .exe generated I get the blank nodewebkit screen (the one with the glowing effect like when you start nwjs(or nw.exe on windows without an actual app)). Same result without --production.

When I run nwb nwbuild -v 0.16.1 -p win64 -r bin-test4 ./ the app runs OK.

Is this a know issue ? What am I missing ?

The same command works on mac (with -p osx64 of course).

It seems the production build does not include the source files (html and stuff like that) and therefore we get the blank nwjs page. But with the -r flag it works. Hmm. No idea. Please help.

marcelfalliere commented 8 years ago

Issue #27 may be a duplicate. I will try with npm 3 and report back.

marcelfalliere commented 8 years ago

Ok that was it. I guess npm v3 should be a requirement written in big bold letters in the doc ☮️

evshiron commented 8 years ago

Greetings. npm 3 uses a "flat" structure to reduce the chances of making extremely long paths during a dependency installation. It's a fix but doesn't really solve this issue because it's a matter of Windows :)