-
-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for electron ASAR archives #1746
Comments
on it :) |
Hi! @pombredanne From what I can think of , we can package official asar libarary into a binary file or use one of its python implementation or maybe create our own python asar library for extraction. |
@adityaviki the general approach would be to copy something such as any of https://github.com/nexB/scancode-toolkit/blob/develop/src/extractcode/libarchive2.py https://github.com/nexB/scancode-toolkit/blob/develop/src/extractcode/sevenzip.py or https://github.com/nexB/scancode-toolkit/blob/develop/src/extractcode/patch.py ... e.g. a module that has these functions in the same way other modules expose these functions
This would
And optionally:
And this would use and invoke the best one of the Python libraries above. |
@pombredanne I looked at the python ASAR libraries that you linked. So here's what I can do
|
Actually having a quick look,https://github.com/leovoel/BeautifulDiscord/blob/master/beautifuldiscord/asar.pyand https://github.com/AS1337/asarPy seem all to be derived from the older https://github.com/Photonios/pyasar The WTPFL license is not great as a license though so I asked @Photonios for a possible change at Photonios/pyasar#3 |
There is also a possible Go-based util we could reuse (though this would mean a native) https://github.com/layeh/asar/ |
Are we at a point where we can use a Python 3 only solution? |
@mjherzog re
I would not go there fully yet. |
hi, I am new to open source. I was looking at some good first issues. Can I work on this? |
hi sir, |
Description
This is the format used by Electron apps.
This is defined here https://github.com/electron/asar
See these Python libs:
See also libarchive/libarchive#1259
The text was updated successfully, but these errors were encountered: