Skip to content

Electron Fuses via app-builder-lib is v1.8.0, causes mismatch with the number of available Fuses (strictlyRequireAllFuses) #9662

@danielweck

Description

@danielweck

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions