update dependencies, remove selfupdater as described in #23
This commit is contained in:
parent
3801e1adac
commit
2891006d89
7 changed files with 22 additions and 41 deletions
|
@ -1,7 +1,5 @@
|
|||
using IWshRuntimeLibrary;
|
||||
using Microsoft.Win32;
|
||||
using Onova;
|
||||
using Onova.Services;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
|
@ -387,17 +385,5 @@ namespace EnvyUpdate
|
|||
|
||||
return 1;
|
||||
}
|
||||
|
||||
public static async Task DoUpdateAsync()
|
||||
{
|
||||
using (var httpc = new System.Net.Http.HttpClient())
|
||||
{
|
||||
using (var manager = new UpdateManager(new WebPackageResolver(httpc, "https://dev.jakobsenkl.pw/envyupdate/versions.txt"), new ZipPackageExtractor()))
|
||||
{
|
||||
// Check for new version and, if available, perform full update and restart
|
||||
await manager.CheckPerformUpdateAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue