From d4977a87082728d85533acfee254644c07ad89f7 Mon Sep 17 00:00:00 2001 From: FrigaT Date: Tue, 25 Nov 2025 09:34:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=B7=D0=B0=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReleaseUpdater/ReleaseUpdaterFacade.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReleaseUpdater/ReleaseUpdaterFacade.cs b/ReleaseUpdater/ReleaseUpdaterFacade.cs index 9544b1b..2701bab 100644 --- a/ReleaseUpdater/ReleaseUpdaterFacade.cs +++ b/ReleaseUpdater/ReleaseUpdaterFacade.cs @@ -72,7 +72,7 @@ public static class ReleaseUpdaterFacade /// Обновление через внешний Updater.exe. /// public static async Task UpdateWithExternalAsync( - string apiUrl, string? token, string installPath, string appExe, string versionOrLatest = "latest", string? updaterExePath = null) + string apiUrl, string? token, string installPath, string appExe, string versionOrLatest = "latest", string? updaterExePath = null, bool exitCurrentApp = false) { try { @@ -99,6 +99,8 @@ public static class ReleaseUpdaterFacade WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory }); + if (exitCurrentApp) { Environment.Exit(0); } + process?.WaitForExit(); if (process?.ExitCode == 0)