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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -497,6 +497,7 @@
"!node_modules/@signalapp/ringrtc/scripts/*",
"node_modules/@signalapp/ringrtc/build/${platform}/*${arch}*.node",
"node_modules/mac-screen-capture-permissions/build/Release/*.node",
"node_modules/fs-xattr/build/Release/*.node",
"!**/node_modules/react-dom/*/*.development.js",
"!node_modules/mp4box/**",
"node_modules/mp4box/package.json",

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');
}