This commit is contained in:
2018-07-07 16:30:57 +03:00
parent 820b639427
commit 54830d1d01
4 changed files with 16 additions and 10 deletions

View File

@@ -81,6 +81,7 @@ class Sdk {
} else {
fse.ensureDirSync(this.path);
const bar = new ProgressBar(`${this.tag} [:bar] :percent :etas`, {width: 40, total: 1000, clear: true});
this.log.d('download: *%s*', this.link);
let stream = got.stream(this.link);
stream = stream.on('downloadProgress', (p) => bar.update(p.percent));
if (this.link.endsWith('.zip')) {