Skip to content
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

Feature: download progress bar on install script. #69

Closed
wants to merge 1 commit into from

Conversation

corwin-of-amber
Copy link
Contributor

Having encountered #26 and seeing that others keep hitting the same "huh?!", I suggest having indication that the script is downloading the ~100MB of NWjs.

Some preparation seems to have existed, in the form of createBar(...). I plugged into this. Since progress only makes sense for download, I placed the vars for total and downloaded bytes in the HTTP-install conditional branch. Some global vars may become redundant (these were not used before either).

@corwin-of-amber
Copy link
Contributor Author

corwin-of-amber commented May 25, 2018

I would like to point out that progress reporting is easier with newer versions of download (specifically, the underlying got), obviating the need for handling response and data events in the progress object. I was a bit reluctant to just upgrade it; you may want to consider the possibility though.

@corwin-of-amber
Copy link
Contributor Author

This is too old. I am making a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant