marticliment / UniGetUI

UniGetUI: The Graphical Interface for your package managers. Could be terribly described as a package manager manager to manage your package managers
https://www.marticliment.com/unigetui/
MIT License
11.94k stars 396 forks source link

[ENHANCEMENT] Show download speed / progress bar / percentage for downloading package #2442

Closed redactedscribe closed 2 months ago

redactedscribe commented 2 months ago

Please confirm these before moving forward.

Describe the improvement

I'd like to be able to see the speed at which a package is downloading here:

WingetUI_2024-07-06_02-58-48

Describe how this improvement could help users

Seeing X / X MB is fine, but it's quite normal I think to be interested in what the actual download speed is. Sometimes it seems like packages are stuck downloading, and seeing 50 Kb/s instead 0 Kb/s might influence your decision to cancel the update or not.

marticliment commented 2 months ago

This info is not displayed by the Package Managers, and therefore if the download speed is not shown, it cannot be shown on UniGetUI

redactedscribe commented 1 month ago

Hello @marticliment. Some package managers show a progress bar in the thin bar at the bottom when updating packages, e.g. WinGet I think (see screenshot above). Other package managers like Scoop also show a progress bar, but not in the thin bar, instead in its console text. The problem is, this progress bar in the console text is not shown in UniGetUI's Live Output.

Updating a Scoop package via PowerShell (notice the bar and the 100%):

12:59 ❯ scoop update --all
zig-dev: 0.14.0-dev.186 -> 0.14.0-dev.211
Updating one outdated apps:
Updating 'zig-dev' (0.14.0-dev.186 -> 0.14.0-dev.211)
Downloading new version
zig-windows-x86_64-0.14.0-dev.211+0cc42d090.zip (76.1 MB) [===================================================] 100%
Checking hash of zig-windows-x86_64-0.14.0-dev.211+0cc42d090.zip ... ok.
Uninstalling 'zig-dev' (0.14.0-dev.186)
...

But the same in UniGetUI's live output (different program, no bar / percentage):

yt-dlp: 2024.07.07 -> 2024.07.09
Updating one outdated app:
Updating 'yt-dlp' (2024.07.07 -> 2024.07.09)
Downloading new version
Downloading https://github.com/yt-dlp/yt-dlp/releases/download/2024.07.09/yt-dlp.exe (17.8 MB)...
Checking hash of yt-dlp.exe ... ok.
Uninstalling 'yt-dlp' (2024.07.07)
...

UniGetUI's live output does not display the progress bar or the percentage of the download, why? At minimum, it should. At best, it would be displayed in the thin bar at the bottom (see screenshot above) and render in the same way to give a consistent UI appearance.

In short: Some kind of UI feedback for download progress for Scoop (and any other package managers which do not currently show a progress bar in UniGetUI but do show one in their normal console text) would be highly appreciated, otherwise it's never clear if an update is hanging, or just slow.

Thanks.

marticliment commented 1 month ago

Will investigate

redactedscribe commented 1 month ago

Thank you @marticliment.