系统托盘

This commit is contained in:
2024-06-29 00:41:06 +08:00
parent 7d2e569fd8
commit 0982fdd16e
6 changed files with 126 additions and 33 deletions
+1 -5
View File
@@ -28,10 +28,7 @@ function startServer() {
env.Path = `${phpDir};${env.Path}`;
const workingDir = path.resolve(path.join(resourcePath, 'iyuu'));
const batFile = path.join('windows.bat');
// batFile 父目录
log.info(`[IYUU] 工作目录: ${workingDir}`);
// serverProcess = exec(`cmd /c ${batPath}`, {
@@ -93,7 +90,6 @@ function startServer() {
serverProcess.on("close", function (code) {
log.info("[IYUU] 服务退出:" + code);
restartServer();
});
}