Ignore pyinstaller runtime options, Fixes #44

This commit is contained in:
extremecoders-re
2022-05-11 12:36:50 +03:00
committed by GitHub
parent 816d50f1e6
commit d68ef84279

View File

@@ -302,6 +302,12 @@ class PyInstArchive:
# packages and modules are pyc files with their header's intact # packages and modules are pyc files with their header's intact
self._writeRawData(entry.name + '.pyc', data) 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: else:
self._writeRawData(entry.name, data) self._writeRawData(entry.name, data)