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