Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] copy down versioned installs in case we use multiple ABIs

  • Loading branch information...
commit 2e2d3c14d6f18785761ccad63c2d982801ea8609 1 parent cc49690
Bradley Meck bmeck authored
Showing with 14 additions and 9 deletions.
  1. +2 −1  .gitignore
  2. +9 −0 install
  3. +1 −6 lib/daemon.js
  4. +2 −2 package.json
3  .gitignore
View
@@ -2,7 +2,8 @@
build/
build/*
*.swp
+*.node
node_modules
npm-debug.log
fixtures/*
-fixtures/!.gitkeep
+fixtures/!.gitkeep
9 install
View
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+version=`node -v`
+node-waf configure build
+if [ -f build/Release/daemon.node ]; then
+ cp build/Release/daemon.node "lib/daemon.$version.node"
+elif [ -f build/default/daemon.node ]; then
+ cp build/default/daemon.node "lib/daemon.$version.node"
+fi
7 lib/daemon.js
View
@@ -9,12 +9,7 @@
var fs = require('fs'),
binding;
-//
-// Try catch here around multiple build paths to support
-// `node@0.4.x` and `node@0.6.x`.
-//
-try { binding = require('../build/default/daemon') }
-catch (ex) { binding = require('../build/Release/daemon') }
+binding = require('./daemon.' + process.version);
var daemon = exports;
4 package.json
View
@@ -19,9 +19,9 @@
},
"main": "./lib/daemon",
"scripts" : {
- "preinstall" : "node-waf configure build"
+ "preinstall" : "bash ./install"
},
"engines" : {
"node" : ">= 0.4.0"
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.