electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

JavaScript Error - '.node' Not Found in ASAR

Open MrTob opened this issue 4 months ago • 1 comments

  • Electron-Builder Version: 24.9.1

  • Node Version: 18.17

  • Electron Version: 24.1.2

  • Electron Type (current, beta, nightly): current

  • Target: Windows

I have an Angular webapp which I would like to build as an Electron app. A self-written .node library is integrated into the Electron app. When I now want to build the Electron app, I get the error that the '.node' file was not found because it is not in resources/app.asar. How can I put the file into the directory?

chrome_y5SxfTeZBh

MrTob avatar Feb 05 '24 08:02 MrTob

You should be able to add it via files option in electron-builder configuration

mmaietta avatar Feb 08 '24 16:02 mmaietta