Preserve extension when installing node

This commit is contained in:
Juan Cruz Viotti 2015-02-13 15:39:56 -04:00
parent 6ca7df5dbc
commit 353908f098

View File

@ -17,6 +17,11 @@ binary.download({
}
var output = path.join(destination, 'node-' + process.platform + '-' + process.arch);
if(process.platform === 'win32') {
output += '.exe';
}
fs.renameSync(binaryPath, output);
console.log('NodeJS downloaded to ' + output);