diff --git a/README.md b/README.md index e9affb8fc..ae7ba817b 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ NodeGit Status](https://travis-ci.org/tbranyen/nodegit.png)](https://travis-ci.org/nodegit/nodegit) Build Status: Windows -**Stable: 0.1.2** +**Stable: 0.1.3** Maintained by Tim Branyen [@tbranyen](http://twitter.com/tbranyen), Michael Robinson [@codeofinterest](http://twitter.com/codeofinterest), and Nick Kallen @@ -73,17 +73,16 @@ sudo pacman -S cmake libzip base-devel #### Windows #### -For Windows users, you will have to install Visual Studio Express. You may -have to add a build flag to the installation process to successfully install. -Try first without, if the build fails, try again with the flag. +- [Download and install CMake](http://www.cmake.org/cmake/resources/software.html). +- [Download and install Python](https://www.python.org/download/windows). +- [Download and install VS Express](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop). + +You may have to add a build flag to the installation process to successfully +install. Try first without, if the build fails, try again with the flag. *Allegedly the order in which you install Visual Studio could trigger this error.* -- [Download and install CMake](http://www.cmake.org/cmake/resources/software.html). -- [Download and install Python](https://www.python.org/download/windows) -- [Download and install VS Express](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop) - ``` bash npm install nodegit --msvs_version=2013 # Or whatever version you've installed. diff --git a/install.js b/install.js index 5c987f5fb..8f86df1e0 100644 --- a/install.js +++ b/install.js @@ -129,7 +129,7 @@ var dependencies = Q.allSettled([ var flags = ['-DTHREADSAFE=ON', '-DBUILD_CLAR=OFF']; // Windows flags. - if (process.platform.indexOf('win') > -1) { + if (process.platform === 'win32') { flags.push.apply(flags, [ '-DSTDCALL=OFF', '-DBUILD_SHARED_LIBS=OFF', diff --git a/package.json b/package.json index 94687fa4e..f86aa0e0b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nodegit", "description": "Node.js libgit2 asynchronous native bindings", - "version": "0.1.2", + "version": "0.1.3", "libgit2": "e953c1606d0d7aea680c9b19db0b955b34ae63c2", "homepage": "https://github.com/tbranyen/nodegit", "keywords": [