Доработан вызов 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();
|
||||
}
|
||||
}
|
||||
BIN
Updater.Test/Tools/Updater.exe
Normal file
BIN
Updater.Test/Tools/Updater.exe
Normal file
Binary file not shown.
20
Updater.Test/Updater.Test.csproj
Normal file
20
Updater.Test/Updater.Test.csproj
Normal file
@@ -0,0 +1,20 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ReleaseUpdater\ReleaseUpdater.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Tools\Updater.exe">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user