mirror of
https://github.com/ZuneDev/ZuneModdingHelper.git
synced 2026-07-27 13:12:21 -07:00
Add update checker to DI container
This commit is contained in:
@@ -14,7 +14,7 @@ namespace ZuneModdingHelper
|
|||||||
{
|
{
|
||||||
public const string Title = "Zune Modding Helper";
|
public const string Title = "Zune Modding Helper";
|
||||||
|
|
||||||
public static readonly ReleaseVersion Version = new(2024, 5, 18, 0, Phase.Alpha);
|
public static readonly ReleaseVersion Version = new(2025, 8, 20, 0, Phase.Alpha);
|
||||||
public static readonly string VersionStr = Version.ToString();
|
public static readonly string VersionStr = Version.ToString();
|
||||||
public static readonly System.Uri VersionUri = new($"https://github.com/ZuneDev/ZuneModdingHelper/releases/tag/{VersionStr}");
|
public static readonly System.Uri VersionUri = new($"https://github.com/ZuneDev/ZuneModdingHelper/releases/tag/{VersionStr}");
|
||||||
|
|
||||||
@@ -44,6 +44,8 @@ namespace ZuneModdingHelper
|
|||||||
Octokit.IGitHubClient github = new Octokit.GitHubClient(new Octokit.ProductHeaderValue(Title.Replace(" ", ""), VersionStr));
|
Octokit.IGitHubClient github = new Octokit.GitHubClient(new Octokit.ProductHeaderValue(Title.Replace(" ", ""), VersionStr));
|
||||||
services.AddSingleton(github);
|
services.AddSingleton(github);
|
||||||
|
|
||||||
|
services.AddSingleton<IUpdateService, GitHubReleasesUpdateService>();
|
||||||
|
|
||||||
services.AddSingleton<IModCoreConfig>(Settings.Default);
|
services.AddSingleton<IModCoreConfig>(Settings.Default);
|
||||||
services.AddSingleton(Settings.Default);
|
services.AddSingleton(Settings.Default);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user