Refers to https://www.electronjs.org/docs/latest/tutorial/asar-archives, but for some APIs that rely on passing the real file path to underlying system calls, Electron will extract the needed file into a temporary file and pass the path of the temporary file to the APIs to make them work; If you need to load a file from an ASAR as if it were a normal file on disk, you must copy (extract) it first.