Skip to content

Commit

Permalink
ux: [des] disable asar to fix release builds
Browse files Browse the repository at this point in the history
Because of electron/electron#23078 and
because we need worker_threads which are initialized as
`new Worker(__filename, opts)`
  • Loading branch information
staltz committed Oct 27, 2022
1 parent 36db674 commit e97999c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion desktop/electron-builder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = {
protocols: [{name: 'ssb', schemes: ['ssb']}],

// Electron-builder options --------------------------------------------------
asar: true,
asar: false,
npmRebuild: true,
electronVersion: backendPackageJSON.optionalDependencies.electron,

Expand Down Expand Up @@ -69,6 +69,7 @@ module.exports = {
'package.json',

'!node_modules/electron',
'!node_modules/**/.bin',
'!node_modules/*-nodejs-mobile',
],
beforeBuild: (conf) => {
Expand Down

0 comments on commit e97999c

Please sign in to comment.