I am trying to extract a ZIP file in Java which was created on a Mac using the built-in archive functionality of the Finder. As the ZIP file contains an application bundle, it is important to retain the Unix file permissions, especially the executable flag.
When extracting the ZIP file using the Finder, the permissions are retained. So I know they're stored somewhere in there.
Now my question is: how does macOS store Unix file permissions in ZIP files? Unfortunately I could not find any information about this on the net.