diff --git a/README.md b/README.md index 3df76d1a4..8c7ab05aa 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ NodeGit ***NOTE: NodeGit currently does not work with [iojs on windows](https://github.com/rvagg/pangyp/issues/4)*** -**Stable: 0.3.0** +**Stable: 0.3.1** ## Have a problem? Come chat with us! ## diff --git a/lifecycleScripts/install.js b/lifecycleScripts/install.js index d83961053..7b5f8dc93 100644 --- a/lifecycleScripts/install.js +++ b/lifecycleScripts/install.js @@ -13,6 +13,8 @@ var exec = promisify(function(command, opts, callback) { var nwVersion = null; var asVersion = null; +var local = path.join.bind(path, __dirname); + return whichNativeNodish("..") .then(function(results) { nwVersion = results.nwVersion; @@ -27,7 +29,7 @@ return whichNativeNodish("..") console.info("[nodegit] Must build for atom-shell"); return checkAndBuild(); } - if (fs.existsSync("../.didntcomefromthenpmregistry")) { + if (fs.existsSync(local("../.didntcomefromthenpmregistry"))) { return checkAndBuild(); } if (process.env.BUILD_DEBUG) { @@ -39,7 +41,7 @@ return whichNativeNodish("..") return checkAndBuild(); } console.info("[nodegit] Fetching binary from S3."); - return exec("node-pre-gyp build") + return exec("node-pre-gyp install") .then( function() { console.info("[nodegit] Completed installation successfully."); diff --git a/package.json b/package.json index bf86072ec..34901e4ff 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nodegit", "description": "Node.js libgit2 asynchronous native bindings", - "version": "0.3.0", + "version": "0.3.1", "libgit2": { "url": "https://github.com/nodegit/libgit2/tarball/4b3a1899ff37dddba0a095487505fed9ede101b1", "sha": "4b3a1899ff37dddba0a095487505fed9ede101b1", @@ -93,9 +93,9 @@ "install": "node lifecycleScripts/install", "installDebug": "BUILD_DEBUG=true npm install", "postinstall": "node lifecycleScripts/clean", - "recompile": "node-gyp configure build", - "rebuild": "node generate && node-gyp configure build", - "recompileDebug": "node-gyp configure --debug build", - "rebuildDebug": "node generate && node-gyp configure --debug build" + "recompile": "pangyp configure build", + "rebuild": "node generate && pangyp configure build", + "recompileDebug": "pangyp configure --debug build", + "rebuildDebug": "node generate && pangyp configure --debug build" } }