Clean up target arch support based on pull request #55 comments.
This commit is contained in:
parent
f1f061e1e3
commit
dd59736393
2 changed files with 7 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue