fix
This commit is contained in:
@@ -28,7 +28,7 @@ public static class ReleaseUpdaterFacade
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Получает список доступных версий из Gitea.
|
/// Получает список доступных версий из Gitea.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static async Task<IReadOnlyList<string>> GetVersionsAsync(string apiUrl, string? token = null)
|
public static async Task<IReadOnlyList<string>> GetVersionsAsync(Uri apiUrl, string? token = null)
|
||||||
{
|
{
|
||||||
var provider = new ReleaseProvider();
|
var provider = new ReleaseProvider();
|
||||||
var releases = await provider.GetReleasesAsync(apiUrl, token);
|
var releases = await provider.GetReleasesAsync(apiUrl, token);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ internal class Program
|
|||||||
Console.WriteLine(SemVerService.Compare("v0.1.2", ReleaseUpdaterFacade.GetCurrentVersion()));
|
Console.WriteLine(SemVerService.Compare("v0.1.2", ReleaseUpdaterFacade.GetCurrentVersion()));
|
||||||
|
|
||||||
await ReleaseUpdaterFacade.UpdateAsync(
|
await ReleaseUpdaterFacade.UpdateAsync(
|
||||||
apiUrl: url,
|
apiUrl: new Uri(url),
|
||||||
token: APIKey,
|
token: APIKey,
|
||||||
installPath: installPath,
|
installPath: installPath,
|
||||||
appExeName: appExe,
|
appExeName: appExe,
|
||||||
|
|||||||
Reference in New Issue
Block a user