-
-
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
Set platform npm environment variable #1027
Set platform npm environment variable #1027
Comments
@lgeiger I actually added support for this on my own branch but never PR'd it because it was a bit hacky. |
|
Will be implemented soon. |
@develar Thanks for the fast response! I just tried
I use |
I'm sorry, the log ( I'll investigate further. |
prebuild
now fully supports Electron and works great together withelectron-builder
and thenpmSkipBuildFromSource
option.Additionally it would be great if
electron-builder
could expose the platform it builds for to anpm
environment variable (npm_config_platform
) during the rebuilding of native modules.This way
prebuild
would be able to download the correct prebuilt binary for the desired target.This would make multi platform builds with native dependencies possible.
The text was updated successfully, but these errors were encountered: