-
Notifications
You must be signed in to change notification settings - Fork 175
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
node-pre-gyp support in the same way than prebuild is supported #367
Comments
When publish this release for support node-pre-gyp? |
There is no timeline. |
get it. but electron-rebuild has node-gyp rebuild error when i use
node-canvas .please check
Automattic/node-canvas#913
Mark Lee ***@***.***> 于2021年9月14日周二 下午10:39写道:
… There is no timeline. node-pre-gyp is complicated because there are
multiple modules which implement it (the deprecated node-pre-gyp, the
replacement @mapbox/node-pre-gyp, and any forks), which may or may not
have different behavior.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEU6TKW23KNJNSJRV5TQON3UB5NBDANCNFSM4M5IIFIQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
the |
🎉 This issue has been resolved in version 3.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@MarshallOfSound @malept pinging you folks as you are the most recent contributors, sorry to bother with this, but after looking for a similar solution I found this PR which was not accepted: #170.
node-pre-gyp
does allow you to have prebuilt binaries for electron, just likeprebuilt
. For a working example, see the assets on this release: https://github.com/JCMais/node-libcurl/releases/tag/v2.1.2-1The trick is that to make it use the correct prebuilt binary some arguments / environment variables must be passed with the
npm install
/yarn install
command, like:If those flags are not passed the prebuilt binary for the current Node.js version is going to be downloaded, and then later when
electron-rebuild
is called the addon is built from source, instead of trying to use the prebuilt binary for Electron.Is the project willing to accept a PR that adds support to it? There is no need to bring the whole
node-pre-gyp
dependency itself as the linked PR did, as the process should be similar to the one used to supportprebuild
:https://github.com/electron/electron-rebuild/blob/c42d6c7ed3ea07b6203a686ccdbfbae6bd5f8b5f/src/rebuild.ts#L295-L336
There are multiple related issues on this repo about
node-pre-gyp
support, the most recent one is this one:#309
I should be able to dedicate some time to this PR, but I need to know if there is any possibility of it being accepted.
The text was updated successfully, but these errors were encountered: