From 7ad3bad1bee4dbaf46aa3c714d1c81c7c753a6e8 Mon Sep 17 00:00:00 2001 From: Neboer Date: Mon, 26 May 2025 05:36:07 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=90=8D=E5=AD=97NAPCAT=5FWRITEPATH=E4=B8=BANAPCAT=5F?= =?UTF-8?q?WORKDIR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/path.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/path.ts b/src/common/path.ts index 8e82c52b..47efc3b6 100644 --- a/src/common/path.ts +++ b/src/common/path.ts @@ -14,8 +14,8 @@ export class NapCatPathWrapper { this.binaryPath = mainPath; let writePath: string; - if (process.env['NAPCAT_WRITEPATH']) { - writePath = process.env['NAPCAT_WRITEPATH']; + if (process.env['NAPCAT_WORKDIR']) { + writePath = process.env['NAPCAT_WORKDIR']; } else if (os.platform() === 'darwin') { writePath = path.join(os.homedir(), 'Library', 'Application Support', 'QQ', 'NapCat'); } else {