Skip to content
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

Support Electron 15-19 and Node.js 17-18 #363

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

ykhwong
Copy link
Contributor

@ykhwong ykhwong commented Sep 23, 2021

Support electron-15.0.0 with abi-98.

Tested on Windows 10 x64.

$ electron --version && electron --abi && electron .

v15.0.0

98

{ button: 0, clicks: 0, x: 2534, y: 46, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2528, y: 50, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2522, y: 53, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2516, y: 57, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2512, y: 59, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2508, y: 60, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2506, y: 61, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2504, y: 62, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2502, y: 63, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2499, y: 63, type: 'mousemove' }
{ button: 0, clicks: 0, x: 2496, y: 65, type: 'mousemove' }

@ykhwong ykhwong changed the title Support Electron 15 Support Electron 15/16 and Node.js 17 Nov 17, 2021
@chevonc
Copy link
Contributor

chevonc commented Nov 28, 2021

@ash0x0 or @ykhwong - any chance we can have this one merged/released soon? I'm currently blocked on upgrading to electron 15 due to iohook not supporting it

@ykhwong
Copy link
Contributor Author

ykhwong commented Nov 29, 2021

Sorry, but I have no permission to merge this pull request. I think that ash0x0 can do it.

@marcelblum
Copy link
Contributor

@chevonc it works fine if you build manually for electron 15. The only issue is that prebuilds are not provided.

@chevonc
Copy link
Contributor

chevonc commented Nov 29, 2021

@marcelblum yeah, I realize I can manually build. However, our current dev flow is setup as such to depend on the pre-builds, so would like to keep using them ideally to avoid having to introduce an additional step

@chevonc
Copy link
Contributor

chevonc commented Dec 4, 2021

@ash0x0 @Djiit any chance we could get this merged soon?

@valkedev
Copy link

It looks like a solution for really huge problem but @ash0x0 can you merge it?

@x8BitRain
Copy link

Yeah, would be cool to get this merged, I tested this on Electron 16 & node 17 on macos Big Sur and it's working fine)) @WilixLead @ash0x0 @Djiit

@AgainPsychoX
Copy link

@ash0x0 Any update on that?

@ykhwong ykhwong changed the title Support Electron 15/16 and Node.js 17 Support Electron 15-17 and Node.js 17 Feb 4, 2022
@jove0610
Copy link

jove0610 commented Mar 2, 2022

After reading previous comments, how do I manually build?

@ykhwong
Copy link
Contributor Author

ykhwong commented Mar 4, 2022

After reading previous comments, how do I manually build?

Documentation:
https://wilix-team.github.io/iohook/manual-build.html

@lacymorrow
Copy link
Collaborator

Hi Wilix Team, would it be possible to grant merge and publish access to more folks in the community?

It seems that the project would benefit from more attention as there are many PRs open with little movement.
@WilixLead @ash0x0 @Djiit

@anasrar anasrar mentioned this pull request Mar 11, 2022
@ykhwong ykhwong changed the title Support Electron 15-17 and Node.js 17 Support Electron 15-18 and Node.js 17 Apr 1, 2022
@ykhwong ykhwong changed the title Support Electron 15-18 and Node.js 17 Support Electron 15-18 and Node.js 17-18 Apr 21, 2022
lmk123 added a commit to hcfyapp/iohook that referenced this pull request Apr 23, 2022
@lacymorrow
Copy link
Collaborator

Just to clarify, are we just waiting on someone with merge credentials?

@x8BitRain
Copy link

Just to clarify, are we just waiting on someone with merge credentials?

Yes

@umbrellait-nikolay-seleznev

Any news?

@dmilin1
Copy link

dmilin1 commented May 15, 2022

@ykhwong I've been trying to follow your instructions but I'm about at my wits end. I'm getting "iohook.node is not a valid Win32 application" despite getting a successful build. Any ideas why that might be? I'm building and running on Windows 10.
image

@ykhwong
Copy link
Contributor Author

ykhwong commented May 18, 2022

I've been trying to follow your instructions but I'm about at my wits end. I'm getting "iohook.node is not a valid Win32 application" despite getting a successful build. Any ideas why that might be? I'm building and running on Windows 10.

The instruction that I provide above is only about how to build iohook manually. You also need to copy the "iohook.node" file that you compiled to your project's iohook module directory.

I have no idea why the error message occurs because you didn't provide any steps to reproduce the problem. Not sure if the issue is the same as #402

@ykhwong ykhwong changed the title Support Electron 15-18 and Node.js 17-18 Support Electron 15-19 and Node.js 17-18 Jun 4, 2022
@dement6d
Copy link

@ash0x0 merge it

@hosseinmd
Copy link

@ykhwong could you publish your branch to npm?

@lacymorrow
Copy link
Collaborator

@WilixLead Anyone around to merge this?
This package is quickly becoming outdated.

@txj-xyz
Copy link

txj-xyz commented Sep 14, 2022

This package is already outdated, You may want to use https://www.npmjs.com/package/uiohook-napi instead

@stefansundin
Copy link

I switched to uiohook-napi but am currently in the process of switching back to iohook. The author of uiohook-napi does not own a mac and is unable to fix a crash (SnosMe/uiohook-napi#24). While I was able to work around this crash, I encountered more issues trying to produce a universal mac build and I am not able to figure it out. So going back to iohook for now unfortunately.

@lacymorrow
Copy link
Collaborator

That's unfortunate, thanks for updating this thread 👍

@lacymorrow
Copy link
Collaborator

Hi, we're starting to merge PRs again, is this still working and relevant?

@dmilin1
Copy link

dmilin1 commented Jan 14, 2024

@lacymorrow it'd certainly be nice to have, but the Electron and Node versions this PR targeted are now way out of date

@lacymorrow
Copy link
Collaborator

Agreed, but we have downstream projects that would benefit from even partial electron and node updates. It's probably worth the bump.

I may not have the ability to release new versions though.

@WilixLead Do you know if I will be able to release new versions on NPM, or update the documentation?

@mhgbrown
Copy link

I'm not sure where to put this, but I want to call out this particular fork of libuiohook, which seems to work everywhere (solves macOS 14 not working, for example). It's used within a .NET analog of this package. I've taken a stab at integrating it here, but my C/C++ skills are uh...very lacking. Would integrating this fork help with updating electron and node support?

@mhgbrown
Copy link

@NoahAndrews
Copy link

Why is the package-lock.json change in this PR so massive?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet