Open baj9032 opened 2 years ago
Looks like you're using Electron 16.0.0 not 6.0.0, correct? iohook doesn't yet offer prebuilds for Electron 16 but you can build it manually. However it can only work in the main process because iohook is not context aware. Which means that you can't require
it in the renderer process past Electron 13.
Looks like you're using Electron 16.0.0 not 6.0.0, correct? iohook doesn't yet offer prebuilds for Electron 16 but you can build it manually. However it can only work in the main process because iohook is not context aware. Which means that you can't
require
it in the renderer process past Electron 13.
oh yaa electron 16
Looks like you're using Electron 16.0.0 not 6.0.0, correct? iohook doesn't yet offer prebuilds for Electron 16 but you can build it manually. However it can only work in the main process because iohook is not context aware. Which means that you can't
require
it in the renderer process past Electron 13.
is there any doc that we can do build manually?
You'll get best results cloning the iohook repo and building from there rather than building from /node_modules/
inside another project. Try cloning the repo, then npm install
, then node build.js --runtime electron --version 16.0.0 --abi 99 --upload=false
@marcelblum
what is use of this build?
I don't understand your question. Looks from your screenshot like you successfully built the binaries. Next copy them into your project's /node_modules/iohook/
folder so you can use them there. For linux and electron 16 I believe you need to place the iohook.node
and uiohook.so
binaries into /node_modules/iohook/builds/electron-v99-linux-x64/build/Release/
.
I don't understand your question. Looks from your screenshot like you successfully built the binaries. Next copy them into your project's
/node_modules/iohook/
folder so you can use them there. For linux and electron 16 I believe you need to place theiohook.node
anduiohook.so
binaries into/node_modules/iohook/builds/electron-v99-linux-x64/build/Release/
.
Resolved thanks. we can close this issue
I am trying to integrate this package into the electron app.
Node: v14.18.2 iohook: ^0.9.3 electron: 16.0.0 Ihook configuration:
my package JSON file:
the error that I am getting