mirror of
https://github.com/Stone-Red-Code/AlwaysUpToDate.git
synced 2026-09-04 00:46:05 +02:00
Add update progress steps, checksum verification, and improved cleanup
This commit is contained in:
@@ -57,8 +57,8 @@ private static void Updater_UpdateAvailible(string version, string additionalInf
|
||||
{
|
||||
}
|
||||
|
||||
private static void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
|
||||
{
|
||||
private static void Updater_ProgressChanged(UpdateStep step, long? totalItems, long itemsProcessed, double? progressPercentage)
|
||||
{
|
||||
}
|
||||
```
|
||||
### Handeling the update
|
||||
@@ -74,10 +74,10 @@ private static void Updater_UpdateAvailible(string version, string additionalInf
|
||||
updater.Update();
|
||||
}
|
||||
```
|
||||
### Download process reporting
|
||||
### Update process reporting
|
||||
```cs
|
||||
private static void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
|
||||
private static void Updater_ProgressChanged(UpdateStep step, long? totalItems, long itemsProcessed, double? progressPercentage)
|
||||
{
|
||||
Console.WriteLine($"{totalBytesDownloaded}/{totalFileSize} {progressPercentage}%");
|
||||
Console.WriteLine($"[{step}] {itemsProcessed}/{totalItems} {progressPercentage}%");
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user