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

Use node-pre-gyp. #64

Closed
octalmage opened this issue Aug 1, 2015 · 21 comments
Closed

Use node-pre-gyp. #64

octalmage opened this issue Aug 1, 2015 · 21 comments
Assignees
Milestone

Comments

@octalmage
Copy link
Owner

Installing and compiling RobotJS requires Python and Visual Studio on Windows and this takes a while to get setup. Instead we can provide pre-built binaries that can be installed using npm. This will greatly improve the end-user experience.

@octalmage
Copy link
Owner Author

#57 is related. This will cut down on the dependencies.

@octalmage octalmage self-assigned this Aug 18, 2015
@DennisBecker
Copy link

Would like to see that, I also want to use robotjs in an electron app for better use with other functionality where AHK won't fit.

@xxxalz
Copy link

xxxalz commented Nov 5, 2015

даешь robotjs for nodejs 4

@brendanadnerb
Copy link

I'm also trying to use it in an Electron app; it works perfectly on Mac but I'm having a lot of trouble getting it to work on Windows, because of these dependencies (not sure if Python and VS are not installed quite right or what). We are also eventually moving to Linux. Shipping with everything self-contained and verified working cross-platform would be awesome.

@janosgy
Copy link

janosgy commented Feb 9, 2016

+1

@tukutela
Copy link

+1 great idea!

@sops21
Copy link

sops21 commented Feb 18, 2016

+1

3 similar comments
@tamkeen-tms
Copy link

+1

@lukasvy
Copy link

lukasvy commented Mar 15, 2016

+1

@blak3r2
Copy link

blak3r2 commented Apr 13, 2016

+1

@vshymanskyy
Copy link
Contributor

+1, really need this. I would like to include it into one of Blynk App turorials!

@octalmage
Copy link
Owner Author

I'll look into it soon! When I looked into it previously I decided to wait until RobotJS was more stable. It's going to take a bunch of work, but it might be worth it at this point.

@vweevers
Copy link

vweevers commented May 2, 2016

@octalmage have you considered prebuild instead of pre-gyp? I recommend it, if you're cool with hosting binaries on Github. Setup is almost effortless.

@octalmage
Copy link
Owner Author

@vweevers I've never heard of it! It looks pretty easy to setup, just wonder how support and adoption is. node-pre-gyp is supported by Mapbox, and used by many huge projects. I'm not sure about prebuild. I'll look into it though!

@octalmage
Copy link
Owner Author

Prebuilt looks really legit, and levelDOWN uses it. That's good enough for me. I'll work on this today.

Thanks @vweevers!

@octalmage
Copy link
Owner Author

I've got most of the builds up, and RobotJS v0.4.2 is using Prebuild! Windows 64bit is missing and I'm working on those builds now.

@octalmage
Copy link
Owner Author

Windows 64bit is up, the majority of users won't have to compile!

@octalmage octalmage reopened this May 25, 2016
@octalmage
Copy link
Owner Author

I reopened this, prebuild doesn't natively support Electron and that's an issue for me. I also want the builds to be built and published automatically, so node-pre-gyp is still something we're going to need. Prebuild works good enough for now though.

@DennisBecker
Copy link

So it is still not possible to use RobotJS with Electron?

@octalmage
Copy link
Owner Author

It's very possible! I do it all of the time. See:

http://robotjs.io/docs/electron

@octalmage
Copy link
Owner Author

You just have to build RobotJS for Electron.

@ghost ghost added the in progress label Feb 26, 2018
@ghost ghost removed the in progress label Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests