Write path.txt after extraction

This commit is contained in:
Kevin Sawicki 2016-12-27 11:03:51 -08:00
parent f405b2e366
commit d2df641b0d

View file

@ -46,11 +46,11 @@ download({
// unzips and makes path.txt point at the correct executable
function extractFile (err, zipPath) {
if (err) return onerror(err)
fs.writeFile(path.join(__dirname, 'path.txt'), paths[platform], function (err) {
if (err) return onerror(err)
extract(zipPath, {dir: path.join(__dirname, 'dist')}, function (err) {
if (err) return onerror(err)
fs.writeFile(path.join(__dirname, 'path.txt'), paths[platform], function (err) {
if (err) return onerror(err)
})
})
}