Juan Cortines
Juan Cortines

Reputation: 131

Code signing DLL files with Electron Builder

I have a few .DLL files which are packaged together with the main .EXE file and are left unsigned.

In my case, these files are: ffmpeg.dll, libeay32.dll, libEGL.dll, libGLESv2.dll and sqlite3.dll.

I think that ffmpeg.dll, libEGL.dll, and libGLESv2.dll are Chromium and Node dependencies, whereas sqlite3.dll, libeay32.dll are dependencies of one of our dependencies.

Is there a reason why electron-builder ignores unsigned .DLL files, even those which are direct Electron dependencies?

Is there a way to include them in the code signing process?

Thanks!

Juan

Upvotes: 0

Views: 1033

Answers (2)

Ian Carter
Ian Carter

Reputation: 2169

electron-builder may ignore certain .DLL files because:

  • default exclusions (e.g., well-known third-parties like ffmpeg.dll)
  • pre-signed DLLs (by vendors)
  • not recognized as part of the app (deps vs. core files)

To force signing, add this to electron-builder.json

"win": {
    "signAndEditExecutable": true,
    "forceSign": true
}

Upvotes: 0

Juan Cortines
Juan Cortines

Reputation: 131

Well, turns out this is already supported in electron-builder with signDlls parameter: https://www.electron.build/configuration/win

Upvotes: -1

Related Questions