Merge pull request #95 from RocketChat/master

Allow download builds for MAS
This commit is contained in:
=^._.^= 2016-02-22 20:41:21 -08:00
commit 4659135fe6

View file

@ -36,7 +36,7 @@ if (installedVersion === version && fs.existsSync(path.join(__dirname, paths[pla
}
// downloads if not cached
download({version: version, arch: process.env.npm_config_arch, strictSSL: process.env.npm_config_strict_ssl}, extractFile)
download({version: version, platform: process.env.npm_config_platform, arch: process.env.npm_config_arch, strictSSL: process.env.npm_config_strict_ssl}, extractFile)
// unzips and makes path.txt point at the correct executable
function extractFile (err, zipPath) {