Files
ReleaseUpdater/Updater.Test/Program.cs
FrigaT 2cb585c222
All checks were successful
CI / build-test (push) Successful in 30s
Release / pack-and-publish (release) Successful in 30s
Доработан вызов updater.exe
2025-11-27 10:55:38 +03:00

22 lines
659 B
C#

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();
}
}