Electron-osx-sign: code object is not signed at all with node_sqlite3.node

Created on 28 Oct 2019  路  2Comments  路  Source: electron/electron-osx-sign

Hello @sethlu and @malept
I have an electronjs project and it needs node_sqlite3.node as a separate dependency.
So I manually copied this module into the Contents folder.
But after all, I get this error.

/Users/lucasgonze/Documents/src/freemium-fork/orchard-data-tests/electron-app/build/mac/Viva Data.app/Contents/MacOS/Viva Data: code object is not signed at all
In subcomponent: /Users/lucasgonze/Documents/src/freemium-fork/orchard-data-tests/electron-app/build/mac/Viva Data.app/Contents/node_sqlite3.node

Please help me with this issue.
I'm using electron-builder
I'm not sure if electron-osx-sign skips this file when code signing or it has a problem with code signing native modules.
Thank you

question

All 2 comments

@mldev-py I'd recommend copying the module into the Resources folder; hopefully this file can be picked up by Electron/node when you require() this addon.

If you added this file to the app bundle after code signing, then you'll need to code sign the app again because the app contents has changed.

Hi, @sethlu
Thank you. It really helped me and my issues are resolved now.
Thank you very much again.

Was this page helpful?
0 / 5 - 0 ratings