Remove Linux support & leftover
MODIFY
WalletWasabi/Services/UpdateManager.cs
WalletWasabi/Services/UpdateManager.cs
@@ -118,17 +118,9 @@ public class UpdateManager
return (url, url.Split("/").Last());
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
- {
- if (RuntimeInformation.OSDescription.Contains("Ubuntu"))
- {
- var url = urls.Where(url => url.Contains(".deb")).First();
- return (url, url.Split("/").Last());
- }
- else
{
throw new InvalidOperationException("For Linux, get the correct update manually.");
}
- }
else
{
throw new InvalidOperationException("OS not recognized, download manually.");
@@ -141,7 +133,6 @@ public class UpdateManager
public string DownloadsDir { get; }
public IHttpClient HttpClient { get; }
public bool UpdateOnClose { get; set; }
- public UpdateChecker? UpdateChecker { get; set; }
public void InstallNewVersion()
{
@@ -157,7 +148,7 @@ public class UpdateManager
{
startInfo = ProcessStartInfoFactory.Make(installerPath, "", true);
}
- else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
+ else
{
startInfo = new()
{
@@ -166,10 +157,6 @@ public class UpdateManager
WindowStyle = ProcessWindowStyle.Normal
};
}
- else
- {
- startInfo = new(installerPath);
- }
using Process? p = Process.Start(startInfo);
p!.WaitForExit();

Remove Linux support & leftover