Skip to content

xuan25/Updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Updater

A automatic updater solution based on Github api

Description

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.

Config

To use this updater you need to setup a numbers of variables

Client

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;

Updater

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;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages