Add new version & fix missing directory bug
MODIFY
WalletWasabi/Models/UpdateStatus.cs
WalletWasabi/Models/UpdateStatus.cs
@@ -18,7 +18,7 @@ public class UpdateStatus : IEquatable<UpdateStatus>
public Version LegalDocumentsVersion { get; }
public ushort CurrentBackendMajorVersion { get; }
- public Version ClientVersion { get; }
+ public Version ClientVersion { get; set; }
#region EqualityAndComparison

MODIFY
WalletWasabi/Services/UpdateManager.cs
WalletWasabi/Services/UpdateManager.cs
@@ -47,6 +47,7 @@ public class UpdateManager : IDisposable
InstallerPath = installerPath;
Logger.LogInfo($"Version {newVersion} downloaded successfuly.");
updateStatus.IsReadyToInstall = true;
+ updateStatus.ClientVersion = newVersion;
break;
}
catch (Exception ex)
@@ -129,7 +130,7 @@ public class UpdateManager : IDisposable
private bool TryGetDownloadedInstaller(string fileName)
{
- IoHelpers.EnsureContainingDirectoryExists(InstallerDir);
+ IoHelpers.EnsureDirectoryExists(InstallerDir);
DirectoryInfo folder = new(InstallerDir);
if (folder.Exists)
{

Add new version & fix missing directory bug