I have packed my Electron application using the following command:
asar pack app app.asar
Now, I need to unpack it and get the whole code back. Is there any way to do so?
I have packed my Electron application using the following command:
asar pack app app.asar
Now, I need to unpack it and get the whole code back. Is there any way to do so?
From the asar documentation
(the use of npx
here is to avoid to installing the @electron/asar
tool globally with npm install -g @electron/asar
)
npx @electron/asar extract app.asar <destfolder>
npx @electron/asar extract-file app.asar main.js
npm install -g asar
. –
Ambush npx asar extract app.asar app.asar.unpacked
as that's probably what users are going to be doing –
Recollect asar
. –
Fetial TypeError: Cannot read properties of undefined (reading 'link')
. –
Wenz It is possible to upack without node installed using the following 7-Zip plugin:
http://www.tc4shell.com/en/7zip/asar/
Thanks @MayaPosch for mentioning that in this comment.
© 2022 - 2024 — McMap. All rights reserved.