-
Notifications
You must be signed in to change notification settings - Fork 41
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
What about native dependencies where the .node binary is not the only architecture-specific file? #67
Comments
Based on this comment, I feel even more confident that this could work if the |
Anyone have any idea about this? Sharp is a wildly popular library and I think |
Friendly bump. This seems to be the only blocker for us to make universal Electron builds. |
@MarshallOfSound do you have any thoughts on this? It seems like an oversight in how universal packages are built that they don't include all of the required native files for both architectures. Instead the bundle only includes a copy for one architecture, so the package just crashes on the other. |
I encountered the same problem and tried many solutions but none of them worked. |
@slapbox We try to automatically merge any file that looks like a Do you have a repro case? |
Thanks for your reply @MarshallOfSound. I wonder if it's related to the fact that Sharp (iirc) only downloads the I don't have a repro case handy but I'll try to make one in the next week or two. @mushan0x0 thanks for your comment in another thread. If you need this sooner and can create a repro that would be a big help to getting this resolved faster (and to me personally) - all the investigative work on this set me back on some other tasks. My plan to produce a repro is to modify this boilerplate: https://github.com/electron-react-boilerplate/electron-react-boilerplate/
|
@MarshallOfSound one other thing that might be of interest while waiting on the repro - from this comment: electron-userland/electron-builder#7512 (comment) Is this how you'd expect the file structure to look? It seems unexpected to me that there's no |
@slapbox I had a chance to look into this, it looks like this is super specific to Although Closing this out as it's a build script issue not an issue with the universal library |
Thanks so much for your investigation @MarshallOfSound, it's greatly appreciated. |
Related to lovell/sharp#3622 - Sharp on macOS requires both a
.node
and and a.dylib
binary but@electron/universal
only seems to manage the.node
files, ignoring the necessity of the.dylib
.I'm not certain this is an
@electron/universal
issue, but after speaking with Sharp's creator and doing some more thinking, I believe that this is the case. Is that something that can be managed by this project? Or am I misunderstanding the problem?The text was updated successfully, but these errors were encountered: