A automatic updater solution based on Github api
This is a simple auto-update solution for standalone executables
It will fetch updates from the Github release page.
Version checking is by comparing the version code on the Github release page and the version code build-in the current program.
To use this updater you need to setup a numbers of variables
In UpdateUtil.cs
// The UserAgent field when requesting to the Github Api server.
private const string UserAgent;
// The repository of the release page.
// Format is "[Username]/[Repository name]" (for example: "xuan525/Updater" for current repo)
private const string RepoName;
// The Uri of the updater in program resources
// For example: "Updater/updater.exe" for provided demo
private const string UpdaterUri
// The path where updater will been released on the disk.
// For example: AppDomain.CurrentDomain.BaseDirectory + "updater.exe"
private static string UpdaterPath;
// Current version code
public static string CurrentVersion;
In Downloader.cs
// The UserAgent field when requesting to the Github Api server.
private const string UserAgent;
// The repository of the release page.
// Format is "[Username]/[Repository name]" (for example: "xuan525/Updater" for current repo)
private const string RepoName;