Include optional dependency in asar when built
This commit is contained in:
parent
287d7e70e5
commit
73fd1a5dfb
2 changed files with 4 additions and 0 deletions
|
@ -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",
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue