-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
win: fix delay-load hook for electron 4 #1566
Conversation
@adill seems like a valid use case to me. If you are up to the challenge, could you parameterize this? It could be something like 'defines': [ 'CORE_EXE_NAME=electron.exe', ], and then the change is the .cc file would be: if (_stricmp(info->szDll, CORE_EXE_NAME) != 0)
return NULL; |
@refack Is this what you had in mind? The idea being that |
note: As implemented anyone still using |
I've tested locally and verified that it works as expected. (I used |
I don't think that will be an issue if we release in node-gyp@4 (where we're dropping support for EOL versions of Node.js/io.js). |
@adill Could you write a test for this? I'm thinking something like:
|
@refack Added a test. Seems to work -- passes per usual, fails when I make the delay load hook return |
Is this fixed released? |
@khanhas, if this passes CI I'll land this, but a release is not ready yet. Hopefully this will be release soon, and quickly adopted by |
12a943e
to
4aa4df6
Compare
PR-URL: nodejs#1566 Reviewed-By: Refael Ackermann <refack@gmail.com>
4aa4df6
to
2bc59b7
Compare
PR-URL: nodejs#1566 Reviewed-By: Refael Ackermann <refack@gmail.com>
PR-URL: nodejs#1566 Reviewed-By: Refael Ackermann <refack@gmail.com>
2bc59b7
to
00213a2
Compare
PR-URL: #1566 Reviewed-By: Refael Ackermann <refack@gmail.com>
Checklist
Description of change
Electron, starting with major version 4, ships a
node.lib
import library referencingelectron.exe
(node
is statically linked) so it is no longer possible to freely renameelectron.exe
and have native modules work out of the box.Is
node-gyp
interested in a change like this? or is this be something that the Electron team should work around themselves?