I wish to be able to use a different file extension for asar archives.
I want to make my application a default application for opening certain type of files that are in fact asar archives but have some custom extension. My application shows some images and plays some audio files from archive and if archive has ‘asar’ extension then it is possible to construct url to those files inside archive, but if I change extension of archive then those urls are not recognized as valid.
I have looked in source code of lib/common/asar.js and found that it would require to change just one function
splitPath. However this function is private and defined as const inside lib/common/asar.js. Maybe it can be changed so that it tries also some other file extension which can be given through environment variables or maybe dynamically changed through something like
Is it possible to unpack electron.asar after installation and replace common/asar.js with patched version?