Electron packager when asar = true can't find image in app.asar


#1

So, I’ve tried to build the electron binaries using electron-packager, but when the asar wasn’t set as true, the application.exe was working fine, however, when the asar was set to true, the image under resource couldn’t be found.

Does anyone have similar issue ? What’s the workaround ?


#2

How are you referring to the image?

It’s not an issue I’ve encountered, but Electron should be able to handle asars without a hitch.


#3

So, when I packed the application in the asar = false, the image referenced in the html page can be found with the specified path. However, when the asar was set true, the image in the html doesn’t show up/can’t be found anymore…
kindly advice…