Clicking Help -> About Caprine produces the following error message:

I'm using v2.44.0 on Ubuntu 18.04, installed from the DEB package.
Going thru Electron's code of that aboutPanel (for linux), it does not really seem there is any logic for reading the image from asar files, it goes straight to gdk_pixbuf_new_from_file_at_size (let's say, reading a image file:) ).
So the iconPath option in api.app.setAboutPanelOptions has to be a direct path to a file.
Edit: caprineIconPath points to the app.asar file (created after packaging, can be produced with electron-packager --dir)
Base idea is to move the Icon.png out of app.asar.
Solutions:
asarUnpack - ~moves~ copies (the file will be in both .unpacked dir and app.asar) selected files into app.asar.unpacked, path module should resolve paths to the file in this directory, not in app.asar file - does not work.hazardous - 3 years old, but works everywhere.extraResources - places selected file directly into resources/ folder, files there aren't getting packed into app.asar.path.process.resourcesPath is then used as base path, instead of joining __dirname and relative path to that.!is.development mainly).
First issue about using asar paths and the problems around them is from 11th May 2016.
https://github.com/electron-userland/electron-builder/issues/390
https://github.com/electron/electron/issues/6262
https://github.com/electron-userland/electron-builder/issues/1120
And one still needs an external module to solve it's discrepancies, someone in electron basically agreed that instead of fixing/making it usable they will let others make a module for it, and then why not just use the code in that module to fix the problems in a first place?
I really wonder how much lifeticks have problems with asar already eaten. (As, don't even expect official docs to specify anything like this.)
Most helpful comment
Base idea is to move the
Icon.pngout ofapp.asar.Solutions:
asarUnpack- ~moves~ copies (the file will be in both.unpackeddir andapp.asar) selected files intoapp.asar.unpacked, path module should resolve paths to the file in this directory, not inapp.asarfile - does not work.hazardous- 3 years old, but works everywhere.extraResources- places selected file directly intoresources/folder, files there aren't getting packed intoapp.asar.path.process.resourcesPathis then used as base path, instead of joining__dirnameand relative path to that.!is.developmentmainly).First issue about using asar paths and the problems around them is from 11th May 2016.
https://github.com/electron-userland/electron-builder/issues/390https://github.com/electron/electron/issues/6262https://github.com/electron-userland/electron-builder/issues/1120And one still needs an external module to solve it's discrepancies, someone in electron basically agreed that instead of fixing/making it usable they will let others make a module for it, and then why not just use the code in that module to fix the problems in a first place?
I really wonder how much lifeticks have problems with asar already eaten. (As, don't even expect official docs to specify anything like this.)