This commit is contained in:
parent
b8ff90fe9e
commit
3b93d92013
5
main.js
5
main.js
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue