[project] added packers

This commit is contained in:
2018-04-25 15:35:10 +03:00
parent 60589db248
commit 744874aa61
9 changed files with 253 additions and 16 deletions

View File

@@ -80,7 +80,7 @@ class Sdk {
if (this.prepared) {
return Promise.resolve();
} else {
mkdirp(this.path);
mkdirp.sync(this.path);
const bar = new ProgressBar(`${this.tag} [:bar] :percent :etas`, {width: 40, total: 1000, clear: true});
let stream = got.stream(this.link);
stream = stream.on('downloadProgress', (p) => bar.update(p.percent));