diff --git a/main.js b/main.js index de363ed..38d3133 100644 --- a/main.js +++ b/main.js @@ -65,7 +65,9 @@ const DEFAULT_SETTINGS = { }, appearance: { theme: 'light', - scale: '110' + scale: '110', + playStartupAnimation: true, + skipSplash: false }, download: { maxConcurrent: 64, @@ -78,7 +80,6 @@ const DEFAULT_SETTINGS = { autoClearLogs: true, logRetentionValue: 7, logRetentionUnit: 'day', - playStartupAnimation: true, developerMode: false } }; @@ -403,8 +404,9 @@ app.whenReady().then(() => { return; } - // 提前初始化 BASE_DIR 以读取配置文件 + // 提前初始化 BASE_DIR 和日志路径,确保所有 writeLog 都写入文件 BASE_DIR = app.getPath('userData'); + initPaths(); // 检查是否启用防止多次启动 let preventMultipleLaunch = true; @@ -430,8 +432,6 @@ app.whenReady().then(() => { } } - initPaths(); - cleanupExpiredLogs(); try { diff --git a/package-lock.json b/package-lock.json index de9a382..e94b8a5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gpcl", - "version": "1.4.2", + "version": "1.4.3", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index c85fcbb..667d351 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gpcl", - "version": "1.4.2", + "version": "1.4.3", "description": "GoodPlanCraftLauncher", "main": "main.js", "scripts": { diff --git a/renderer/index.html b/renderer/index.html index e7d7b19..1b46ac1 100644 --- a/renderer/index.html +++ b/renderer/index.html @@ -1,4 +1,4 @@ -