Доработан вызов updater.exe
All checks were successful
CI / build-test (push) Successful in 30s
Release / pack-and-publish (release) Successful in 30s

This commit is contained in:
2025-11-27 10:55:38 +03:00
parent cc490c7112
commit 2cb585c222
14 changed files with 173 additions and 98 deletions

21
Updater.Test/Program.cs Normal file
View File

@@ -0,0 +1,21 @@
using ReleaseUpdater;
namespace Updater.Test;
internal class Program
{
static async Task Main(string[] args)
{
string installPath = AppDomain.CurrentDomain.BaseDirectory;
string appExe = "RetailUpdatesBot.exe";
string updaterPath = Path.Combine(installPath, "Tools\\Updater.exe");
var url = "https://git.frigat.duckdns.org/api/v1/repos/automacon/RetailUpdatesBot/releases";
var APIKey = "0552a77699d7506711946fc71cc6635515726bd1"; //токен
await ReleaseUpdaterFacade.UpdateWithExternalAsync(url, APIKey, installPath, appExe, "latest", updaterPath, true);
Console.ReadKey();
}
}