-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Make a setting for --build-from-option flag #790
Make a setting for --build-from-option flag #790
Conversation
@lyssdod, thanks for your PR! By analyzing the history of the files in this pull request, we identified @develar, @demetris-manikas and @symbyte to be potential reviewers. |
My main concern for this — I have to create installers for all platforms, but I have only one (Mac) available. Since I won't be able to rebuild my native modules with MSVC on Mac, I would like to use already present precompiled binaries for bundling |
Hi! Any word on a review here? @develar |
Did you investigate why #647 doesn't work? I mean — why " it uses prebuilt to download native binary instead of compiling."? Why incorrect binaries were used? I don't want to introduce yet another flag, it is better to investigate — is it really bug in the precompiled binaries. |
@develar I`ll try to investigate 5.22.2 release |
@lyssdod Issue is not in the electron-builder, should be reproducible using latest version also. |
The trick is in the |
@lyssdod I understand you completely. But I want to understand — does So, I ask you to check — is it If you don't want to do this work, I can accept PR but this flag will be not documented and marked as experimental. And not by default. |
I'm all up for solving this issue on the I`ll look into bug #647 more thoroughly now. |
Hi again @develar, I've looked into #647 but didn't see any useful info there (release used there already has this flag enabled). Instead I've prepared a test repo which uses prebuilt modules after patching https://github.com/lyssdod/electron-abi-test
http://electron.atom.io/docs/tutorial/using-native-node-modules/ says there's another method of specifying it: # Tell node-pre-gyp to build module from source code.
export npm_config_build_from_source=true I can update PR to handle this option instead of handling the flag if it makes sense. Relevant lines in |
@lyssdod Ok, thanks.
For now this flag will be not enabled by default, according to this note. |
Thank you! |
This seems to fix #787
The only place I'm unsure of is (haven't touched yet):
electron-builder/src/install-app-deps.ts
Line 33 in a4eeade