1
0
Fork 0
This commit is contained in:
yunyun 2026-06-02 16:44:26 +08:00
parent b8ff90fe9e
commit 3b93d92013
1 changed files with 3 additions and 2 deletions

View File

@ -404,9 +404,8 @@ app.whenReady().then(() => {
return; return;
} }
// 提前初始化 BASE_DIR 和日志路径,确保所有 writeLog 都写入文件 // 提前初始化 BASE_DIR 以读取配置文件
BASE_DIR = app.getPath('userData'); BASE_DIR = app.getPath('userData');
initPaths();
// 检查是否启用防止多次启动 // 检查是否启用防止多次启动
let preventMultipleLaunch = true; let preventMultipleLaunch = true;
@ -432,6 +431,8 @@ app.whenReady().then(() => {
} }
} }
initPaths();
cleanupExpiredLogs(); cleanupExpiredLogs();
try { try {