Skip to content

Commit

Permalink
[Normal] Support android
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdWindScholar committed Feb 24, 2024
1 parent ba50263 commit 5c5525e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imgextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def main(self, target: str, output_dir: str, work: str, target_type: str = 'img'
mount = ext4.Volume(file).get_mount_point
if mount[:1] == '/':
mount = mount[1:]
if self.__out_name(os.path.basename(output_dir)) != mount:
if self.__out_name(os.path.basename(output_dir)) != mount and mount:
print(f"[N]:Your File Name Not Right , We will Extract {self.OUTPUT_IMAGE_FILE} to {mount}")
self.EXTRACT_DIR = os.path.realpath(os.path.dirname(output_dir)) + os.sep + mount
self.FileName = mount
Expand Down
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,8 @@ def unpack(file, info, project):
mount = ext4.Volume(e).get_mount_point
if mount[:1] == '/':
mount = mount[1:]
parts[mount] = 'ext'
if mount:
parts[mount] = 'ext'
with Console().status(f"[yellow]正在提取{os.path.basename(file)}[/]"):
imgextractor.Extractor().main(file, project + os.sep + os.path.basename(file).split('.')[0], project)
try:
Expand Down

0 comments on commit 5c5525e

Please sign in to comment.