I have a problem with electron asar, when I use the command asar extract app.asar source-code
, in the resource folder of the compressed electron application, I get a source-code folder, which contains 10 files without extension, with a name made of numbers and letters, like '2c038301f4fd0f66706f18083669f6494d16e47f5a7931c2dbba8a674e8e`. I mostly get an error on the terminal side
node:buffer:363
throw new ERR_INVALID_ARG_VALUE.RangeError('size', size);
^
RangeError [ERR_INVALID_ARG_VALUE]: The argument 'size' is invalid. Received 4.614001365766979e+307
at Function.alloc (node:buffer:372:3)
at module.exports.readFileSync (C:\Users\AppData\Roaming\npm\node_modules\asarlib\disk.js:106:23)
at module.exports.extractAll (C:\Users\User\AppDataRoamingnpm\node_modulesasarlib\asar.js:204:28)
at Command.<anonymous> (C:\Users\User\AppData\Roamingnpm\node_modules\asarbin\asar.js:72:10)
at Command.listener [as _actionHandler] (C:\Users\User\AppData\Roamingnpm\node_modules\asar\node_modules\commander\index.js:413:31)
at Command._parseCommand (C:\Users\User\AppData\Roamingnpm\node_modules\asar\node_modules\commander\index.js:914:14)
at Command._dispatchSubcommand (C:\Users\User\AppData\Roamingnpm\node_modules\asar\node_modules\commander\index.js:865:18)
at Command._parseCommand (C:\Users\AppData\Roaming\npm\node_modules\asar\node_modules\commander\index.js:882:12)
at Command.parse (C:\Users\User\AppData\Roaming\npm\node_modules\asar\node_modules\commander\index.js:717:10)
at Object.<anonymous> (C:\Users\User\AppData\Roaming\npm\node_modules\asar\binasar.js:80:9) {
code: 'ERR_INVALID_ARG_VALUE'
}
Node.js v18.14.0```
How to solve this problem to get the source code of the please application?
Get the source code of the application