Include optional dependency in asar when built

This commit is contained in:
Fedor Indutny
2023-02-21 20:21:30 -08:00
committed by GitHub
parent 287d7e70e5
commit 73fd1a5dfb
2 changed files with 4 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ try {
// eslint-disable-next-line global-require, import/no-extraneous-dependencies
xattr = require('fs-xattr');
} catch (e) {
if (process.platform === 'darwin') {
throw e;
}
window.SignalContext.log?.info('x-attr dependency did not load successfully');
}