mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
32 lines
697 B
C#
32 lines
697 B
C#
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|