Skip to content

Commit 4a9e8c6

Browse files
committed
Added build instructions.
1 parent 97ead45 commit 4a9e8c6

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

README.md

+22-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ Only tested on Mac OS X using Node.js v0.10.31. I'm working on rewriting RobotJS
99

1010
Based on [autopy](https://github.com/msanders/autopy).
1111

12-
##Installing##
12+
##Installing
13+
1314
```
1415
npm install robotjs
1516
```
1617

17-
##Examples##
18+
##Examples
1819
Get the mouse location and move it.
1920

2021
```JavaScript
@@ -30,7 +31,25 @@ robot.moveMouse(mouse.x,mouse.y+100);
3031
//Left click!
3132
robot.mouseClick();
3233
```
33-
##Progress##
34+
35+
##Building
36+
37+
RobotJS uses [node-gyp](https://github.com/TooTallNate/node-gyp) for building.
38+
39+
Install node-gyp using npm:
40+
41+
```
42+
npm install -g node-gyp
43+
```
44+
45+
Then confgure and build:
46+
47+
```
48+
node-gyp configure
49+
node-gyp build
50+
```
51+
52+
##Progress
3453

3554
| Module | Status | Notes |
3655
| ------------- |-------------: | ------- |

0 commit comments

Comments
 (0)