ipsw-parser 1.3.6__tar.gz → 1.3.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/PKG-INFO +1 -1
  2. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/_version.py +2 -2
  3. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/build_identity.py +7 -2
  4. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/PKG-INFO +1 -1
  5. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.gitattributes +0 -0
  6. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  7. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  8. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/workflows/codeql.yml +0 -0
  9. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/workflows/python-app.yml +0 -0
  10. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/workflows/python-publish.yml +0 -0
  11. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.gitignore +0 -0
  12. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.pre-commit-config.yaml +0 -0
  13. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/CODE_OF_CONDUCT.md +0 -0
  14. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/LICENSE +0 -0
  15. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/README.md +0 -0
  16. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/__init__.py +0 -0
  17. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/__main__.py +0 -0
  18. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/build_manifest.py +0 -0
  19. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/component.py +0 -0
  20. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/exceptions.py +0 -0
  21. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/firmware.py +0 -0
  22. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/img4.py +0 -0
  23. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/ipsw.py +0 -0
  24. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/SOURCES.txt +0 -0
  25. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/dependency_links.txt +0 -0
  26. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/entry_points.txt +0 -0
  27. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/requires.txt +0 -0
  28. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/top_level.txt +0 -0
  29. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/pyproject.toml +0 -0
  30. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/pytest.ini +0 -0
  31. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/requirements.txt +0 -0
  32. {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipsw-parser
3
- Version: 1.3.6
3
+ Version: 1.3.7
4
4
  Summary: python3 utility for parsing and extracting data from IPSW
5
5
  Author-email: doronz88 <doron88@gmail.com>
6
6
  Maintainer-email: doronz88 <doron88@gmail.com>
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.3.6'
16
- __version_tuple__ = version_tuple = (1, 3, 6)
15
+ __version__ = version = '1.3.7'
16
+ __version_tuple__ = version_tuple = (1, 3, 7)
@@ -6,7 +6,7 @@ from tempfile import TemporaryDirectory
6
6
  from typing import List, Mapping, Optional
7
7
 
8
8
  from cached_property import cached_property
9
- from plumbum import local
9
+ from plumbum import ProcessExecutionError, local
10
10
  from pyimg4 import IM4P
11
11
 
12
12
  from ipsw_parser.component import Component
@@ -162,10 +162,15 @@ class BuildIdentity(UserDict):
162
162
  kernel_output = output / 'System/Library/Caches/com.apple.kernelcaches' / kernel_path.parts[-1]
163
163
 
164
164
  logger.info(f'extracting kernel into: {kernel_output}')
165
- # kernel_output.write_bytes(kernel_component.data)
166
165
  im4p = IM4P(kernel_component.data)
167
166
  im4p.payload.decompress()
168
167
  kernel_output.write_bytes(im4p.payload.output().data)
168
+ try:
169
+ # In case the kernel is a FAT image, extract the arm64 macho
170
+ local['ipsw']('macho', 'lipo', '-a', 'arm64', kernel_output)
171
+ list(kernel_output.parent.glob('*.arm64'))[0].rename(kernel_output)
172
+ except ProcessExecutionError:
173
+ pass
169
174
 
170
175
  for cryptex in ('App', 'OS'):
171
176
  name = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ipsw-parser
3
- Version: 1.3.6
3
+ Version: 1.3.7
4
4
  Summary: python3 utility for parsing and extracting data from IPSW
5
5
  Author-email: doronz88 <doron88@gmail.com>
6
6
  Maintainer-email: doronz88 <doron88@gmail.com>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes