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
Update binding for electron 4.x #34
Conversation
|
I'm running into issues attempting to run
I have the entire build output if helpful. The bits that stuck out to me were: gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Build
Tools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Admin\AppData\Roaming\npm\no
de_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces
s.js:240:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\devel\\electron-edge-js\\lib\\native\\win32\\x64\\10.11.0\
\node.exe" "C:\\Users\\Admin\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin
\\node-gyp.js" "configure" "build" "--target=v4.0.0-beta.7" "--dist-url=https://
atom.io/download/electron" "--msvs_version=2017" "-release"
gyp ERR! cwd C:\devel\electron-edge-js
gyp ERR! node -v v10.11.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Error building edge.node release for node.js x64 v10.11.0 |
Just tried it out on my side and it still fails. What I did:
=> Error from linked issue persists:
Edit:
|
044519c
to
bb83c09
Compare
@allisonshaw which updates in particular? |
@stereokai it is up to @agracio now, and since the pull is still open, there are no updates yet. |
@Hammster: @allisonshaw wrote "With the updates from #32 I was able to rebuild and everything works now.", so which updates? I'm trying to get this PR to work on my machine, but I'm getting a That's why I asked :) Update: I switched to
So that happens because of this PR merged in 4.0.4:
Currently, it seems the pre-compiled binaries in this PR support Electron only up to version 4.0.3. |
Tried rebuilding using this PR changes but so far it made no difference. Are there any more changes that are missing? |
@allisonshaw were you running Electron version 4.0.0 exactly? or newer? |
@agracio The pre-compiled binaries in this PR are working for me with Electron 4.0.3. From v4.0.4 they will not work, and will need recompilation on the user machine (see reason in my previous comment). You can try this for yourself by using |
I would prefer to have a concrete build process that does not rely on 'hacked' pre-compiled binaries. I will merge binaries if they are updated to 4.0.4 and will mark in README that only 4.0.4 and above are supported. But I would only do it as a one off, and would need a concrete build process steps going forward. |
These PR compiles fine in repos using Electron 4.0.0-4.0.3. For 4.0.4+ there is a workaround until Electron devs fix |
I have used the following approach: use new |
@stereokai updates from [this comment] (#32 (comment)) The pre-compiled binaries on this branch were targeting 4.0.0. In 4.0.4 the version of node must have been updated (yet again) so the binaries will need to be re-compiled I;m assuming. @agracio I will rebuild the binaries for 4.0.4 and make the change in README as requested. A future version of node-gyp will have the pragma added and the extra step won't be necessary - build process should remain as it is now. |
@allisonshaw No need to change README, I meant I will do it myself, just add 4.0.4 binaries. Also make sure that changes in |
The changes to bindings.gyp should still be required, but I will confirm before adding the new built binaries. |
Awesome 😁 |
bb83c09
to
8b75682
Compare
- binaries built - update bindings.gyp win_delay_load_hook true - build script targets Node 10.11.0 Electron 4.0.4
8b75682
to
8e6d81d
Compare
All changes are complete. Ready for merge, @agracio . |
Merged and published to npm. |
Attempting to address #32
According to the documentation already linked in the above issue, this change appears to be the fix. However, I'm unsure of the steps to build
electron-edge-js
so I haven't tested. I'm happy to build and test, if you can point me to build steps. Thanks.