Добавлена настройка пути updater.exe
All checks were successful
CI / build-test (push) Successful in 28s
Release / pack-and-publish (release) Successful in 29s

This commit is contained in:
2025-11-25 08:28:30 +03:00
parent fb83e2d060
commit 60a3ec4dc7

View File

@@ -72,7 +72,7 @@ public static class ReleaseUpdaterFacade
/// Обновление через внешний Updater.exe.
/// </summary>
public static async Task UpdateWithExternalAsync(
string apiUrl, string? token, string installPath, string appExe, string versionOrLatest = "latest")
string apiUrl, string? token, string installPath, string appExe, string versionOrLatest = "latest", string? updaterExePath = null)
{
try
{
@@ -88,12 +88,12 @@ public static class ReleaseUpdaterFacade
BeforeInstall?.Invoke();
var updaterExe = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Updater.exe");
if (updaterExePath == null) updaterExePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Updater.exe");
var args = $"--zip \"{zipPath}\" --installPath \"{installPath}\" --appExe \"{appExe}\"";
var process = Process.Start(new ProcessStartInfo
{
FileName = updaterExe,
FileName = updaterExePath,
Arguments = args,
UseShellExecute = true,
WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory