don't delete dist folder

This commit is contained in:
Sean Yesmunt 2018-07-21 04:51:13 -04:00
parent 80f75096b6
commit fc3c7fd94d
2 changed files with 10 additions and 1 deletions

View file

@ -68,7 +68,16 @@ const downloadDaemon = targetPlatform =>
.then(() => del(`${daemonFilePath}*`))
.then(() => decompress(tmpZipPath, daemonDir, {
filter: file =>
path.basename(file.path).replace(path.extname(file.path), '') === daemonFileName,
path.basename(file.path) === daemonFileName,
}))
.then(() => {
console.log('\x1b[32msuccess\x1b[0m Daemon downloaded!');
if (hasDaemonVersion) {
del(daemonVersionPath);
}
fs.writeFileSync(daemonVersionPath, daemonVersion, "utf8")
resolve('Done');
})
)
.then(() => {

View file