1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-05 23:53:21 +00:00

check for keytar.node in same dir when packaged

This commit is contained in:
Kyle Spearrin
2019-03-16 16:44:33 -04:00
parent c11cc0b979
commit d1507dffca

View File

@@ -129,5 +129,10 @@ export class Main {
}
}
const main = new Main();
main.run();
if (!(process as any).pkg || fs.existsSync('./keytar.node')) {
const main = new Main();
main.run();
} else {
// tslint:disable-next-line
console.error('The keytar.node dependency must be in the same directory as bwdc.');
}