自动下载并更新

This commit is contained in:
ChsBuffer
2020-08-12 02:22:26 +08:00
parent 6f1025c73e
commit be2ee1a5df
16 changed files with 470 additions and 22 deletions

View File

@@ -67,12 +67,14 @@ namespace Netch
if (!mutex.WaitOne(0, false))
{
OnlyInstance.Send(OnlyInstance.Commands.Show);
Logging.Info("唤起单实例");
// 退出进程
Environment.Exit(1);
}
Task.Run(OnlyInstance.Server);
Logging.Info("启动单实例");
// 绑定错误捕获
Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);