mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-13 05:25:00 +00:00
Add .asar support #323
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lanzorg on GitHub (Sep 8, 2018).
It would be great if sharpcompress could handle .asar archives.
@adamhathcock commented on GitHub (Sep 9, 2018):
It’s for electron? https://github.com/electron/asar/
I’ll look into it. Looks simple enough, unlike Tar :)
@lanzorg commented on GitHub (Sep 9, 2018):
Yes, it is.
Glad to know this would be "easily" possible. :)
@adamhathcock commented on GitHub (Sep 11, 2018):
The hard part is that someone would need to port Pickle to C#
https://github.com/electron-archive/node-chromium-pickle
The essentially has a Pickled JSON dictionary at the header then a series of bytes afterward. The dictionary contains all the offsets for the files in the archive.
@roy-tate commented on GitHub (Nov 13, 2018):
I haven't personally tested this, but Razorvine.Pyrolite implements Pickle for a limited mapping of Python objects. It is on GitHub, MIT licensed, targets .Net Standard 2.0, and the documentation explicitly says that the pickle and un-pickle (Protocol 2) can be used stand-alone (Razorvine.Pyrolite/Pickle)