This is my script to “clean up” a typical macOS zip file.
It assumes you’ve started by asking the Finder to “Compress” (which creates a zip file but one riddled with macOS-isms).
#!/bin/bash
zipfile=$1
if [ "x$zipfile" = "x" ] ; then
echo "$0: .zip file expected" >&2
exit 1
fi
zip -d "${zipfile}" "__MACOSX*"
zip -d "${zipfile}" ".DS_Store"
zip -d "${zipfile}" "*/.DS_Store"
unzip -l "${zipfile}" | sort -k 5