Electron-builder: Native module not found after Build

Created on 4 Nov 2019  路  7Comments  路  Source: electron-userland/electron-builder

  • Version:
    electron-builder v21.2.0
    electron v6.0.9
    node v10.16.0

  • Target:

  1. Mac
    zip, dmg
  2. Windows
    nsis
  3. Linux
    AppImage, tar.gz

    Custom native module not found after building the app installers. However, running with electron . in dev environment, It works fine. Here is the screen capture.
    image

Here is the node-gyp configuration from binding.gyp file
{ "targets": [{ "target_name": "altron", "sources": [ "src/altron.cc" ], }] }

backlog

Most helpful comment

The issue has not been fixed, please provide detail on how to use compiled native module in electron production build.

All 7 comments

This looks similar to the issue I reported here: #4370

This looks similar to the issue I reported here: #4370
there is no solution or workaround given.

Can u solve this problem ? @vkiranmaniya

@Mhmetengineer not yet, I wrote and compiled the Node native module but it doesn't work in the production build of the electron.

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

The issue has not been fixed, please provide detail on how to use compiled native module in electron production build.

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings