wilix-team / iohook

Node.js global keyboard and mouse listener.
https://wilix-team.github.io/iohook
MIT License
1.2k stars 291 forks source link

add relative paths to rpath for mac build #269

Closed marcelblum closed 3 years ago

marcelblum commented 3 years ago

For #268. This should fix where iohook.node looks for uiohook.dylib on the mac build. The gotcha is that the absolute compile path is hardcoded as an rpath during the build process at https://github.com/wilix-team/iohook/blob/39e90a8478b15dc332c959e6a31346449c6c63c9/build_def/darwin/binding.gyp#L19 which makes testing on the same machine on which it was built tricky. May want to just delete that line altogether but I left it in for now. I tested by temporarily renaming my build path and this worked for me.