Доработан вызов updater.exe
This commit is contained in:
21
Updater.Test/Program.cs
Normal file
21
Updater.Test/Program.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user