nwjs-builder-phoenix icon indicating copy to clipboard operation
nwjs-builder-phoenix copied to clipboard

NWJS's recent update to 0.42.0 breaks build process at "Building directory target starts..."

Open tonetechnician opened this issue 4 years ago • 1 comments

Hey there,

I know this project isn't being maintained so well at the moment, but it has been working well for me for both Windows and MacOSx up until the latest nwjs update to 0.42.0.

I'm planning to fix this, but wanted to put the issue here in case anyone else has some ideas.

When attempting to build for MacOSx, I get the error

Building directory target starts...
{ Error: ENOENT: no such file or directory, scandir '/Users/xxxx/Documents/git-repos/xxxx/dist/xxxx/nwjs.app/Contents/Versions'
  errno: -2,
  code: 'ENOENT',
  syscall: 'scandir',
  path: '/Users/xxxx/Documents/git-repos/xxxx/dist/xxxx/nwjs.app/Contents/Versions' }

It seems the paths have changed between 0.33 and 0.42 (possibly somewhere else in between there).

0.42.0 now has the Versions directory found at nwjs-sdk-v0.42.0-osx-x64/nwjs.app/Contents/Frameworks/nwjs Framework.framework/Versions

whilst 0.33.4 had the Versions directory found at nwjs-sdk-v0.33.4-osx-x64.zip-extracted/nwjs-sdk-v0.33.4-osx-x64/nwjs.app/Contents/Versions

The nwjs build package instructions haven't changed, so I imagine this is a small fix. Hopefully I can make a pull request to fix soon, but if anyone has a quick idea where in the code I might find this that would help alot!

tonetechnician avatar Nov 07 '19 19:11 tonetechnician