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
Building packages on OS X silently fails during ncp call #150
Comments
Can you bisect which released version of electron-packager is the last one that works for you? |
I believe I was using 5.1.0 when it worked before... I tried moving back to an earlier version anyway but it still didn't work. Could this be something related to something in my app code base (I see symlink issues are mentioned a lot, I have symlinked modules). |
Could you try specifying an Otherwise, I think we're going to need reproduction steps on a minimal Electron app. |
Still isn't working with I'm doing a bit of debugging, seems to be failing here, the callback function ( |
Hmm. Very odd. I noticed that Travis CI only tests under Node 0.12. Let me add some more Node versions, and see if that surfaces anything. |
Possibly related to AvianFlu/ncp#98? |
Possibly, but that's a really vague bug report with no follow-up. |
Yup. FYI, tried a couple of other node versions, I'm getting the same issue with Node-v0.12.2 and iojs-v2.0.1. |
The actual copying of files works fine by the way, all the files are copied correctly, it's just that the callback isn't fired. I put the callback in a var ncpCallbackFired = false
ncp(opts.dir, appPath, {filter: userIgnoreFilter(opts), dereference: true}, function(err) {
ncpCallbackFired = true;
cb(err);
});
// callback above isn't being fired by ncp for some reason,
// so call it synthetically after 20 secs if it hasn't been fired.
// https://github.com/maxogden/electron-packager/issues/150
setTimeout(function() {
if (!ncpCallbackFired) {
cb(null);
}
}, 20000); |
Just want to mention that a number of people have found ncp inconsistent and buggy, also it isn't being actively maintained anymore: AvianFlu/ncp#100 I also noticed that the fs-extra module dropped ncp because of bugs surrounding non-firing/double-firing of callbacks. |
we should switch to using https://www.npmjs.com/package/tar-fs: |
We should open a new issue for that. |
Dropping ncp, as others are doing, from unfixed bugs re: callbacks not being called. See electron/packager#150 (comment) 5832894
ncp sometimes has issues (see #150 and #151) -- use cptar instead
Looks like this was intended to be closed in #150. |
Using electron-packager v5.1.0 on OS X 10.10.5 and Node v4.1.1
No errors, it just exits about 10 seconds after displaying the message "Packaging app for platform darwin x64 using electron v0.33.6" and there are no files written to my CWD.
I realise that this is very sparse on info but I'm not sure what other details I can give. When I last ran this command about three weeks ago it worked fine.
The text was updated successfully, but these errors were encountered: