Skip to content

Commit

Permalink
fix: resolve path
Browse files Browse the repository at this point in the history
  • Loading branch information
zcf0508 committed Sep 20, 2023
1 parent b8c6e62 commit f7049ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/whisper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
));
Expand Down

0 comments on commit f7049ed

Please sign in to comment.