Skip to content

nefarius/Nefarius.Utilities.GitHubUpdater

Repository files navigation

Nefarius.Utilities.GitHubUpdater

Build status Requirements Nuget Nuget

Utility classes to perform application update checks using GitHub repositories.

Example

Put a snippet similar to the following in your application startup sequence:

#if !DEBUG
        if (new UpdateChecker("nefarius", "Identinator").IsUpdateAvailable)
        {
            await this.ShowMessageAsync("Update available",
                "A newer version of the Identinator is available, I'll now take you to the download site!");
            Process.Start(new ProcessStartInfo("https://github.com/nefarius/Identinator/releases/latest")
                { UseShellExecute = true });
        }
#endif