修复处理正常iPA文件时解析不出数据问题

修复处理正常iPA文件时解析不出数据问题
v1.0.9.1
kelvinBen 2 years ago committed by GitHub
parent dd4804475d
commit 18188fda3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      libs/task/ios_task.py

@ -126,7 +126,8 @@ class iOSTask(object):
if not os.path.exists(dir_path): if not os.path.exists(dir_path):
os.makedirs(dir_path) os.makedirs(dir_path)
shutil.move(old_ext_path, new_ext_path) shutil.move(old_ext_path, new_ext_path)
if os.path.exists(old_ext_path) and (".app" in old_ext_path): # 当旧目录与新目录不一致时,删除旧的目录
if not (old_ext_path == new_ext_path) and os.path.exists(old_ext_path) and (".app" in old_ext_path):
try: try:
# mac发生权限问题的时候做处理 # mac发生权限问题的时候做处理
os.remove(old_ext_path) os.remove(old_ext_path)

Loading…
Cancel
Save