ASAR: how to unpack a .asar file?
ASAR: how to unpack a .asar file?
I have packed my electron application using follwoing command
asar pack app app.asar
Now, I need to unpack it and get the whole code back. Is there anyway to do so?
1 Answer
1
From asar documentation
asar extract app.asar destfolder
asar extract-file app.asar main.js
Side note: you can install the command with
npm install -g asar
.– Mike Chamberlain
Apr 2 '17 at 9:16
npm install -g asar
Ok, how do you unpack a asar file without having to install the entire node development environment?
– Fake Name
May 19 '17 at 1:16
I understand that, but I don't want node. I don't want to have to install a entire language runtime, and have npm spray crap all over my system just to unpack a file. I do a lot of this stuff in VMs, and I try very hard to not install crap everywhere.
– Fake Name
Aug 15 '17 at 20:40
@FakeName - I used the 7Zip plugin found in this thread at the 7Zip project: sourceforge.net/p/sevenzip/discussion/45797/thread/74cf1dec Allows one to open any ASAR file in 7Zip.
– MayaPosch
Dec 2 '17 at 13:23
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
The electron docs say: "you can also package your app into an asar archive to avoid exposing your app's source code to users." but it is not true if you are then able to unpack it? right??
– neoDev
Dec 10 '16 at 13:21