-
Notifications
You must be signed in to change notification settings - Fork 15
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
Module does not get bundled properly into electron app #18
Comments
Can you elaborate on what you think is missing as part of the build process (especially since I am not really familiar with developing on macOS and thus am not sure what you are showing me)? The source code for the dependency (Google's cpu_features library) is already bundled and is what is compiled when the addon is installed. If you're saying a process is staying alive after the build has finished, then that seems like more of a node-gyp issue than a |
The I'm not well-versed enough on this library, |
Hah, having typed up the above reply, got inspired on some google search terms, and turns out it is a Going to close this as yeah, don't think there's anything that needs to change here. |
While upgrading some build pipeline stuff for M1, I hit an issue where this module was causing our built app to fail Gatekeeper check due to a hanging
LC_RPATH
for thecpu-features/build/node_gyp_bins/python3
file. Even forx86
builds, while it doesn't have that issue withLC_RPATH
, it does still potentially have paths that cause the module to not load properly ever, granted gatekeeper, nor thessh2
module doesn't seem to care.For reference, here is the partial outputs of running
otool -l
over the aforementioned file, just including the load commands that center around files/dylibs.For
x86
:For
arm64
:As can see, the referenced
LC_LOAD_DYLIB
andLC_RPATH
all seem to be build machine specific, and if the files don't exist on the host, then there's issues. Ideally,cpu-features
could bundle all it needs as part of its build process, but that could also just be too much for multiple versions of python onto the host.Currently, we are avoiding this problem by removing
cpu-features
in apostinstall
hook given that it's optional, and just hoping that it won't provide some cipher or whatever that we might have needed inssh2
library. I'm totally fine if this issue gets deleted and it only exists purely as documentation to someone else before they waste a day on trying to figure out why theirarm64
build of an electron app is failing to run.The text was updated successfully, but these errors were encountered: