[innosetup] add innosetup installer packer
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user