unzip should preserve symbolic links on windows #1082
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adding test which shows that
cross-zip
does not preserve symbolic links on windows. After this build fails I will add another commit which reverts #984 to show that this worked before.Fixing this is only the first step in enabling building macOS packages on windows.
The next problem is that
fs-extra
is usingfs.stat
instead offs.lstat
which failes for symbolic links on windows. (I will open an issue there and see if this is intended or not.) So the package can not be moved:https://github.com/electron/electron-packager/blob/2e974d1211020eb22ac75c21cc0966b9bfaac216/src/platform.js#L215
EDIT: Or maybe this is only an issue on my machines? Because all the
fs-extra
symlink tests are failing on my machine even when running as administrator... I will investigate more...