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

ENOENT nw.icns (when invoking binding.chmod) #122

Closed
adam-lynch opened this issue Nov 26, 2014 · 8 comments
Closed

ENOENT nw.icns (when invoking binding.chmod) #122

adam-lynch opened this issue Nov 26, 2014 · 8 comments
Labels
bug Priority: 1

Comments

@adam-lynch
Copy link
Contributor

I just got this now on Mac while testing the graceful-ncp branch, but I've previously seen it with master on Windows. Note sure what's going on. Any idea @steffenmllr? Maybe whatever step this is ran from is ran before a previous one is complete?

fs.js:821
  return binding.chmod(pathModule._makeLong(path), modeNum(mode));
                 ^
Error: ENOENT, no such file or directory '/Users/adam/Code/GitHub/abc/dist/abc/osx/abc.app/Contents/Resources/nw.icns'
  at Object.fs.chmodSync (fs.js:821:18)
  at /Users/adam/Code/GitHub/abc/node_modules/node-webkit-builder/lib/utils.js:89:20
@adam-lynch adam-lynch added the bug Priority: 1 label Nov 26, 2014
@adam-lynch
Copy link
Contributor Author

@felixSchl, I wonder have you seen this?

@felixSchl
Copy link
Contributor

I can reproduce it immediately if I pass macZip: true to the NwBuilder options.

@adam-lynch
Copy link
Contributor Author

Hmm, I'm not passing that. And as I debug, the file in question and the error location changes 😦. I got the error with nw.icns, Info.plist... now it's a JS file inside app.nw.

@adam-lynch
Copy link
Contributor Author

And there's no longer a mention of chmod in the error 😕

@felixSchl
Copy link
Contributor

In fact, these lines just won't start to make sense to me. Why does it try to copy the zip file to the name of the icon file?

@adam-lynch
Copy link
Contributor Author

#100 is why 😄. Thanks

@felixSchl
Copy link
Contributor

I will say something outrageous now: Try another library for copying. I have had nothing but headaches using ncp myself. Maybe try using wrench. I used ncp for a buildscript at work and it was flaky and unpredictable (I saw the impossible) - then I switched to using wrench and it just worked nicely.

@adam-lynch
Copy link
Contributor Author

It's now building reliably for me on my Mac with the changes from #100 😄

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

No branches or pull requests

2 participants