fix
This commit is contained in:
parent
7aaf2acab4
commit
34f298c43b
@ -83,7 +83,7 @@ static class Server
|
|||||||
logger.LogWarn(nameof(CheckUpdates), "program update found, restarting...");
|
logger.LogWarn(nameof(CheckUpdates), "program update found, restarting...");
|
||||||
string exeFile = relativeFilePath.Str;
|
string exeFile = relativeFilePath.Str;
|
||||||
string exeFileNew = exeFile + "_new";
|
string exeFileNew = exeFile + "_new";
|
||||||
File.Move(relativeFilePath, exeFileNew, true);
|
File.Move(updatedFilePath, exeFileNew, true);
|
||||||
if(Environment.OSVersion.Platform == PlatformID.Win32NT)
|
if(Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||||
Process.Start("cmd",$"/c move {exeFileNew} {exeFile} && {exeFile}");
|
Process.Start("cmd",$"/c move {exeFileNew} {exeFile} && {exeFile}");
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user