HeinrichAD / libxdo

Node.js wrapper: fake keyboard/mouse input, window management, and more using X11’s XTEST extension and other Xlib functions
https://github.com/jordansissel/xdotool
GNU General Public License v3.0
6 stars 2 forks source link

Update package.json to work with new library versions #1

Closed elamperti closed 2 years ago

elamperti commented 2 years ago

Given that ffi has been failing to install on node >= 14 and that there is a set of new libraries that fix this (and seem to be a bit more updated), this change should be enough to get things working again. I did my best to follow the structure and style of the existing code, so the only changes are the library references.

I've tested it with Node 17.0.1 (using example.js).

I hope this can be merge (and tagged! 🔖 ) so I can use this package properly :)

Let me know if there's any issue! Thank you

HeinrichAD commented 2 years ago

I just tested the changes with node 10, 12 and 16. Everything seems to be alright.

docker run -it \
    -v "$(pwd)":/app \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v ~/.Xauthority:/root/.Xauthority \
    -e DISPLAY=unix$DISPLAY \
    --net=host \
    --entrypoint /bin/bash \
    node:12-slim   # node:{10,12,16}-slim
apt-get update && apt-get install -y python3 make g++ libxdo-dev
cd /app
rm -rf node_modules && npm install
node example.js
HeinrichAD commented 2 years ago

Changes got the tag v0.2.0 and are now published on npmjs npm publish.


https://github.com/HeinrichAD/libxdo/tags https://www.npmjs.com/package/libxdo

elamperti commented 2 years ago

🎉 Thank you!