Clean up target arch support based on pull request #55 comments.

This commit is contained in:
Tom Hughes 2015-09-22 10:34:52 -07:00
parent f1f061e1e3
commit dd59736393
2 changed files with 7 additions and 5 deletions

View file

@ -23,11 +23,8 @@ var paths = {
if (!paths[platform]) throw new Error('Unknown platform: ' + platform)
if (process.env.npm_config_arch) {
download({version: version, arch: process.env.npm_config_arch}, extractFile)
} else {
download({version: version}, extractFile)
}
// downloads if not cached
download({version: version, arch: process.env.npm_config_arch}, extractFile)
// unzips and makes path.txt point at the correct executable
function extractFile (err, zipPath) {