Include optional dependency in asar when built
This commit is contained in:
@@ -497,6 +497,7 @@
|
|||||||
"!node_modules/@signalapp/ringrtc/scripts/*",
|
"!node_modules/@signalapp/ringrtc/scripts/*",
|
||||||
"node_modules/@signalapp/ringrtc/build/${platform}/*${arch}*.node",
|
"node_modules/@signalapp/ringrtc/build/${platform}/*${arch}*.node",
|
||||||
"node_modules/mac-screen-capture-permissions/build/Release/*.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/react-dom/*/*.development.js",
|
||||||
"!node_modules/mp4box/**",
|
"!node_modules/mp4box/**",
|
||||||
"node_modules/mp4box/package.json",
|
"node_modules/mp4box/package.json",
|
||||||
|
@@ -26,6 +26,9 @@ try {
|
|||||||
// eslint-disable-next-line global-require, import/no-extraneous-dependencies
|
// eslint-disable-next-line global-require, import/no-extraneous-dependencies
|
||||||
xattr = require('fs-xattr');
|
xattr = require('fs-xattr');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
window.SignalContext.log?.info('x-attr dependency did not load successfully');
|
window.SignalContext.log?.info('x-attr dependency did not load successfully');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user