Skip to content

Add prebuilds #992

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

Merged
merged 1 commit into from
Mar 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
language: node_js
install:
- npm install --build-from-source
node_js:
- '8'
- '6'
Expand Down
6 changes: 5 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@
$ npm install canvas
```

Unless previously installed you'll _need_ __Cairo__ and __Pango__. For system-specific installation view the [Wiki](https://github.com/Automattic/node-canvas/wiki/_pages).
By default, binaries for macOS, Linux and Windows will be downloaded. If you want to build from source, use `npm install --build-from-source`.

Currently the minimum version of node required is __4.0.0__

### Compiling

If you don't have a supported OS or processor architecture, or you use `--build-from-source`, the module will be compiled on your system. Unless previously installed you'll _need_ __Cairo__ and __Pango__. For system-specific installation view the [Wiki](https://github.com/Automattic/node-canvas/wiki/_pages).

You can quickly install the dependencies by using the command for your OS:

OS | Command
Expand Down
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"description": "Canvas graphics API backed by Cairo",
"version": "2.0.0-alpha.5",
"author": "TJ Holowaychuk <[email protected]>",
"main": "index.js",
"browser": "browser.js",
"contributors": [
"Nathan Rajlich <[email protected]>",
Expand All @@ -27,9 +28,17 @@
"pretest": "node-gyp build",
"test": "standard examples/*.js test/server.js test/public/*.js benchmark/run.js util/has_lib.js browser.js index.js && mocha test/*.test.js",
"pretest-server": "node-gyp build",
"test-server": "node test/server.js"
"test-server": "node test/server.js",
"install": "node-pre-gyp install"
},
"binary": {
"module_name": "canvas-prebuilt",
"module_path": "build/Release",
"host": "https://github.com/node-gfx/node-canvas-prebuilt/releases/download/",
"remote_path": "v{version}"
},
"dependencies": {
"node-pre-gyp": "^0.6.36",
"nan": "^2.4.0"
},
"devDependencies": {
Expand Down