Following #6365
I am seeing this error in my build since Electron v41, likely because of the introduction of a new Fuse (now 9 in total):
https://github.com/electron/fuses/blob/12810c24e192a30f56ff295ee5f6e544ed4670b9/src/index.ts#L103
strictlyRequireAllFuses: The fuse wire in the Electron binary has ${fuseWireLength} fuses but you only provided a config for ${wire.length} fuses, you may need to update @electron/fuses or provide additional fuse settings
See:
|
public addElectronFuses(context: AfterPackContext, fuses: FuseConfig) { |
|
const { appOutDir, electronPlatformName } = context |
|
|
|
const ext = { |
|
darwin: ".app", |
|
mas: ".app", |
|
win32: ".exe", |
|
linux: "", |
|
}[electronPlatformName] |
|
|
|
const executableName = this instanceof LinuxPackager ? this.executableName : this.appInfo.productFilename |
|
const electronBinaryPath = path.join(appOutDir, `${executableName}${ext}`) |
|
|
|
log.info({ electronPath: log.filePath(electronBinaryPath) }, "executing @electron/fuses") |
|
return flipFuses(electronBinaryPath, fuses) |
|
} |
Culprit, v1.x:
|
"@electron/fuses": "^1.8.0", |
... but now at v2.x:
https://github.com/electron/fuses/releases
Following #6365
I am seeing this error in my build since Electron v41, likely because of the introduction of a new Fuse (now 9 in total):
https://github.com/electron/fuses/blob/12810c24e192a30f56ff295ee5f6e544ed4670b9/src/index.ts#L103
See:
electron-builder/packages/app-builder-lib/src/platformPackager.ts
Lines 413 to 428 in ed422f3
Culprit,
v1.x:electron-builder/packages/app-builder-lib/package.json
Line 52 in ed422f3
... but now at
v2.x:https://github.com/electron/fuses/releases