From f7049ed45cf5dfaa9bfc76a8ee96f79982346098 Mon Sep 17 00:00:00 2001 From: zcf0508 Date: Wed, 20 Sep 2023 16:29:49 +0800 Subject: [PATCH] fix: resolve path --- src/main/whisper/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/whisper/index.ts b/src/main/whisper/index.ts index 3dc909a..6609d1b 100644 --- a/src/main/whisper/index.ts +++ b/src/main/whisper/index.ts @@ -4,7 +4,7 @@ import { promisify } from "node:util"; const prod = import.meta.env.PROD const resourcesPath = prod ? process.resourcesPath : path.resolve(__dirname, "../../../public/resources") -const { whisper } = require(path.join( +const { whisper } = require(path.resolve( resourcesPath, "whisper-addon.node", ));