-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: Adding download-progress event to AutoUpdater #1042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Adding download-progress event to AutoUpdater #1042
Conversation
@badams, thanks for your PR! By analyzing the history of the files in this pull request, we identified @maczikasz to be a potential reviewer. |
Sorry my two PRs might not meet the guidelines, I didnt see that initially |
@develar I've fixed the conflicts and added a test for this feature, is there anything else I need to do to get this merged? |
@badams Thanks for complete PR with test. Merged. |
electron-auto-updater@0.8.5 published with this great feature. |
Hey Guys. This might be a dumb question but does this work with Electron's native autoUpdater? We're using autoUpdater.on('download-progress', (progressObj) => {
let log_message = "Download speed: " + progressObj.bytesPerSecond;
log_message = log_message + ' - Downloaded ' + progressObj.percent + '%';
log_message = log_message + ' (' + progressObj.transferred + "/" + progressObj.total + ')';
console.log( log_message );
}) Just curious if this is Thanks! |
@joshuapinter no this is a custom feature in electron-builder |
@badams Thanks so much for the quick reply! Hell of a custom feature! Might be worth switching over at some point. :) Thanks again! |
did you able to fix this? |
@hmpargi We built our own custom downloader with electron-forge. Then months later we ended up switching the project to electron-builder. |
Adding a new event
download-progress
to the AutoUpdater, can be used like sopayload received from this event is as follows:
#958 #948