From cd7a9129ec9b4f457bc1fc2c61bcf102b94fbd14 Mon Sep 17 00:00:00 2001 From: YuanShiJiLoong <2450829984@qq.com> Date: Tue, 3 Mar 2026 17:54:52 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20debug=20log=E5=86=99=E5=85=A5=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=AE=89=E8=A3=85=E7=9B=AE=E5=BD=95=E8=80=8C=E9=9D=9E?= =?UTF-8?q?=E6=A1=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/electron/main.js b/electron/main.js index c71c03b..c6614a2 100644 --- a/electron/main.js +++ b/electron/main.js @@ -32,8 +32,8 @@ const os = require('os'); } })(); -// 日志文件 - 写到用户桌面方便查看 -const logFile = path.join(app.getPath('desktop'), 'author-debug.log'); +// 日志文件 - 写到应用安装根目录(exe 同级),方便查找 +const logFile = path.join(path.dirname(process.execPath), 'author-debug.log'); function log(msg) { const line = `[${new Date().toISOString()}] ${msg}\n`; console.log(msg);