mirror of
https://github.com/snltty/linker.git
synced 2025-12-18 23:38:11 +08:00
服务器自动更新
This commit is contained in:
@@ -39,7 +39,15 @@ namespace linker.service
|
||||
{
|
||||
if (Process.GetProcessesByName(mainExeName).Any() == false)
|
||||
{
|
||||
RestartService();
|
||||
if (File.Exists($"{mainExeName}.exe.temp"))
|
||||
{
|
||||
RestartService();
|
||||
}
|
||||
else
|
||||
{
|
||||
KillExe();
|
||||
OpenExe();
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user