Closed Arti3DPlayer closed 7 years ago
Well, that is because of debounce:
const onProgress = ( length ) => {
this.emit( "download", length, release.size );
};
download( release.url, os.tmpdir(), debounce( onProgress, debounceTime ))
I've made it waiting for too long DEBOUNCE_TIME = 500
before rechecking the state and firing the event. I'ww think of reducing the default value. But you change with the options of download/unpack methods:
updater.download(rManifest, { debounceTime: 50 })
Hello i have the following code:
But download event only fired only once when
zip
file already finished.Version:
"nw-autoupdater": "^1.1.0",