2022-04-12 11:21:55 +00:00
|
|
|
#!/usr/bin/env python3
|
2019-05-29 16:40:02 +00:00
|
|
|
|
|
|
|
import zipfile
|
|
|
|
import sys
|
|
|
|
|
|
|
|
def main(zip_path, manifest_out):
|
2024-03-21 13:48:23 +00:00
|
|
|
with open(manifest_out, 'w', encoding='utf-8') as manifest, \
|
2019-05-29 16:40:02 +00:00
|
|
|
zipfile.ZipFile(zip_path, 'r', allowZip64=True) as z:
|
|
|
|
for name in sorted(z.namelist()):
|
|
|
|
manifest.write(name + '\n')
|
|
|
|
return 0
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2022-03-21 02:11:21 +00:00
|
|
|
sys.exit(main(sys.argv[1], sys.argv[2]))
|