Skip to content

Commit d9814e1

Browse files
author
Ryan
committed
fix wrong file path for keytar
1 parent 3f4ac39 commit d9814e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

electron/copy-native-modules.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function getModulePath(moduleName) {
5151
}
5252

5353
// Create the destination directory if it doesn't exist
54-
const destDir = path.join(process.cwd(), 'dist-electron', 'native_modules')
54+
const destDir = path.join(process.cwd(), 'dist-electron')
5555
if (!fs.existsSync(destDir)) {
5656
fs.mkdirSync(destDir, { recursive: true });
5757
}

electron/src/get-keytar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ try {
77
if (process.env.NODE_ENV === 'development') {
88
keytar = require('keytar');
99
} else {
10-
const keytarPath = join(__dirname, 'native_modules', 'keytar.node');
10+
const keytarPath = join(__dirname, 'keytar.node');
1111
keytar = require(keytarPath);
1212
}
1313
} catch (error) {

0 commit comments

Comments
 (0)