-
-
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
Install app deps always trigger rebuild #787
Install app deps always trigger rebuild #787
Comments
Binaries available for nodejs, but not for electron. Electron headers must be used.
We use flag
As general nodejs app :) There are flags to disable rebuild, but your app will not work correctly (native dep must be compiled for Electron, not for NodeJS). |
@develar If I'll provide binaries for electron, is it possible to skip build step? What should I do to accomplish this? Handle |
You can set npmRebuild to I suggest you to investigate why |
Thank you! |
Hi, I'm still stuck here. Despite I've made separate binaries for electron (https://github.com/lyssdod/node-libtorrent/releases/tag/0.3.2), I still can't use 'em with electron-builder. I've found out that:
The obvious workarounds here are to fork |
+1 |
Again — are you sure that you will be able to provide correct binaries for ALL electron versions and for ALL archs? Your module is public, not only for you, right? Yes — we force build from sources, please see #647 |
Yes — if npmRebuild is false, it is your responsibility to install/compile/rebuild node modules. |
To be clear — I am not against and +100 to avoid native compilation. But npm/node-pre-gyp issues make this task not easy. For example, second call of npm install will not recompile binaries if arch/headers were changed. So, as a robust solution, electron-builder should call node-pre-gyp directly to download correct binaries or, maybe, even do it yourself. PR welcome. |
I'm pretty sure I will provide required binaries, since I'm bound to a specific electron version. When I'll switch to another version, I'll make binaries for it (though I already did that, I have binaries for 0.37.8 which's I'm currently using and for 1.2.3, which I hope to switch to). Is it possible to make |
@lyssdod Could please try it — I am not sure that binaries will be downloaded correctly. I mean — fork project and investigate. |
@develar Sure! Will provide a result soon |
Hello, I'm using electron-builder with native module (https://github.com/lyssdod/node-libtorrent). The module itself uses
node-pre-gyp
and has precompiled binaries. It installs flawlessly if I'm not usingelectron-builder
directly (runningnpm install
fromapp
directory works). But if I do, it fails withThe fun fact is, this module (
adm-zip
) is specified innode-libtorrent-ng
sdevDependencies
and is handled by regularnpm install
just fine.So my questions are:
electron-builder
ignores default action ofnode-gyp-rebuild
despite binaries are available?Thanks!
The text was updated successfully, but these errors were encountered: