We use Phing on a macOS High Sierra to deploy a WordPress plugin and its ZipTask to build the final archive.
The output of file command against the archives give us this information:
push-notifications-for-wordpress.zip: Zip archive data, at least v2.0 to extract
From which we can see the minimum version to extract archive is v2.0.
Now, we are having troubles with WordPress installer system that does not support those archives:
Could not extract file from archive. push-notifications-for-wordpress/./
If we extract the file and re-create it with the zip command line resulting in a v1.0 compatible file:
push-notifications-for-wordpress.zip: Zip archive data, at least v1.0 to extract
WordPress will successfully extract it and we are reasonably sure that minimum version needed to extract file is the key problem.
So, is there a way to force ZipTask to make a v1.0 compliant zip archive?
Thank you!
With version 2.0, the Zip specification introduced support for folders. Previously it did not:
Source: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
So it does not make sense to support zip v1 at all, and you have to look for the error elsewhere.