[innosetup] add innosetup installer packer

This commit is contained in:
2019-09-03 16:26:06 +03:00
parent 524695b155
commit 414099bd67
6 changed files with 121 additions and 7 deletions

View File

@@ -63,13 +63,15 @@ class Downloader {
let stream = got.stream(url);
stream = stream
.on('request', r => {
bar.start(1, 0);
if (bar) bar.start(1, 0);
})
.on('downloadProgress', p => {
bar.setTotal(p.total);
bar.update(p.transferred);
if (p.total === p.transferred) {
Downloader.releaseProgressBar(bar);
if (bar) {
bar.setTotal(p.total);
bar.update(p.transferred);
if (p.total === p.transferred) {
Downloader.releaseProgressBar(bar);
}
}
});
if (url.endsWith('.zip')) {