Replace libzip for backup creation/extraction #31
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: williamjcm/MassBuilderSaveTool#31
Loading…
Reference in a new issue
No description provided.
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?
Don't get me wrong, I like it. Its API is decent for a C lib, and it has all of the features I need.
However! It has one issue. While I never ran into it back when I still primarily used Windows because zlib was already installed "system"-wide via MSYS2, libzip's CMake project can't detect and use zlib if it's available to CMake through
add_directory()
(like as a Git submodule), and it's not gonna change any time soon.The only candidate I found so far is minizip-ng, which can grab zlib (or optionally, zlib-ng) on its own if it's not found. There were some interesting zlib-free alternatives, but they were all missing the ability to get and set an archive's comment for some reason, and the old minizip in zlib's repo is unmaintained and unsupported.
If this works out, this change will be in 1.5 and shouldn't affect existing backups.
My experience using minizip-ng definitely isn't what I expected.
Between various issues with its CMake project and its API lacking stuff like human-readable errors, I decided to just build the current dependencies manually and tweak the CMake project to allow for system deps.
If it continues to fail, I'll have one option left: using Windows just for coding, because MSYS2 can't be installed in Wine.