Open timsneath opened 2 weeks ago
I've implemented the code from the original PR in #10, but I'm having some trouble with the CI, as I am not able to pass a build of zlib
. Maybe @compnerd could give us a hand?
I think (from the actions log), the problem is that tar
only supports the Zip format in Windows 11 builds and later, and the GitHub Actions windows-latest
image is Windows Server 2022, which is based on Windows 10 21H2.
It looks like the runner image does include 7Zip, so you can probably replace the tar line with something like:
7z x archive.7z -opath/to/dir
Ok, now zilb
is correctly downloaded and linked.
All tests succeed except for a important one. I'll do what I can in the coming days.
We are almost there! 😃
That test I previously mentioned fails because of two reasons:
vapor-community/Zip
itself. Changing it to an identical file zipped with Finder seems to fix the issue.vapor-community/Zip
on Windows can be unzipped (or even if it can be zipped). If it's zipped in Linux/macOS it can't be unzipped on Windows.Right now the solution to the colons problem is avoiding it, and the one for the permissions problem is an ugly hack that doesn't even work all the time. Of course more work is needed. If you know more on Windows permissions I would appreciate your help!
I've managed to remove colons in file names and I've removed any permissions setting specific to Windows, now all the test succeed.
I've marked the PR as ready to review and requested some reviews. When it gets merged I'll do a new patch release, but I think that more real world testing will be needed.
It would be great if we could incorporate https://github.com/marmelroy/Zip/pull/246/files, which would enable this to work on Windows. Today there's no well-maintained ZIP implementation that includes Windows support, and you're achingly close!