mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
Upgrade to .net framework 4.0
This commit is contained in:
31
Wox.Core/Updater/UpdaterManager.cs
Normal file
31
Wox.Core/Updater/UpdaterManager.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Squirrel;
|
||||
|
||||
namespace Wox.Core.Updater
|
||||
{
|
||||
public class UpdaterManager
|
||||
{
|
||||
private static UpdaterManager instance;
|
||||
|
||||
public static UpdaterManager Instance
|
||||
{
|
||||
get
|
||||
{
|
||||
if (instance == null)
|
||||
{
|
||||
instance = new UpdaterManager();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
}
|
||||
|
||||
private UpdaterManager() { }
|
||||
|
||||
public void CheckUpdate()
|
||||
{
|
||||
using (var mgr = new UpdateManager("https://path/to/my/update/folder", "nuget-package-id", FrameworkVersion.Net45))
|
||||
{
|
||||
mgr.UpdateApp();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user