Ignore pyinstaller runtime options, Fixes #44

This commit is contained in:
extremecoders-re 2022-05-11 12:36:50 +03:00 committed by GitHub
commit d68ef84279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -302,6 +302,12 @@ class PyInstArchive:
# packages and modules are pyc files with their header's intact
self._writeRawData(entry.name + '.pyc', data)
elif entry.typeCmprsData == b'd' or entry.typeCmprsData == b'o':
# d -> ARCHIVE_ITEM_DEPENDENCY
# o -> ARCHIVE_ITEM_RUNTIME_OPTION
# These are runtime options, not files
pass
else:
self._writeRawData(entry.name, data)