mirror of
https://github.com/snltty/linker.git
synced 2025-10-20 23:59:27 +08:00
更新完自动关闭程序
This commit is contained in:
@@ -39,7 +39,9 @@ namespace linker.service
|
||||
{
|
||||
if (Process.GetProcessesByName(mainExeName).Any() == false)
|
||||
{
|
||||
if (File.Exists($"{mainExeName}.exe.temp"))
|
||||
string filename = Process.GetCurrentProcess().MainModule.FileName;
|
||||
string dir = Path.GetDirectoryName(filename);
|
||||
if (File.Exists(Path.Combine(dir, $"{mainExeName}.exe.temp")))
|
||||
{
|
||||
RestartService();
|
||||
}
|
||||
|
Reference in New Issue
Block a user