-
Notifications
You must be signed in to change notification settings - Fork 250
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
--unpack-dir does not unpack symlinks #76
Comments
After some testing, it seems that at https://github.com/electron/asar/blob/master/src/asar.coffee#L107:
I would be happy to do a PR but I'm not sure I'm seeing the full picture (and all the potential edge cases when dealing with links). Here is how I would do it:
@kevinsawicki Thoughts? |
Just stumbled upon this issue as part of trying to package A bit of context:
Not sure if there's other context on this decision I'm missing or something that will break if we support this, but if there's a 👍 from someone on the core team about continuing down this path I'm happy to bash together a patch using what I've found and what @romaincointepas has found above. |
FYI @paulcbetts @smashwilson @BinaryMuse @kuychaco - why we won't currently be able to put Git into an ASAR |
Is there any progress on this issue? |
Closing this old issue as it is likely fixed by now, if not please raise a new issue. |
asar.unpackDir
does not unpack symlinks intoapp.asar.unpacked/mydir
(files and subdirectories are unpacked there, symlinks are not).Tested with relative symlinks that points to files inside the directory that is being unpacked on OS X.
The text was updated successfully, but these errors were encountered: