-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
ASAR problem in Electron #402
Comments
I'm not sure what the feature request is here. What would the interface look like, and how would it behave? |
I ran into a similar issue today: After extraction, the following file: The log (verbose) reports, it would extract 'app.asar': This looks like an internal side effect of special electron fs behavior, which will treat app.asar like a regular directory |
@dashart-ke ok, so, same question I asked @markkovacs76: what do you want tar to do about it? |
Either you could add an extra option for tar.x to use original-fs instead of fs library. In this case the user should import fs-original and append the reference to the options. Or in the source in node-tar the electron could be detected:
If yes, Or, I just found the easiest solution. In Electron I found |
So the feature request is to have a Seems fine to me. Just a pain to go through and make the edits. But patch welcome. |
If node-tar is used in Electron environment where asar file support is enabled, the entry names with extension asar will not be written correctly, because Electron uses its own 'fs' library which handles asar files as a sub-directory.
Hence, Electron does offer 'original-fs' library if you want to use asar file as normal file instead of a virtual sub-directory in the modified 'fs'.
It would be good if node-tar supported the 'original-fs' library by demand instead of 'fs' from electron.
The text was updated successfully, but these errors were encountered: