Skip to content

Commit

Permalink
update DeviceSupport url
Browse files Browse the repository at this point in the history
  • Loading branch information
YueChen-C committed Oct 26, 2021
1 parent 16aaf32 commit 76800e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions ios_device/util/lockdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,15 +304,8 @@ def _request_developer_image_dir(self):
local_device_support = get_app_dir("device-support")
image_zip_path = os.path.join(local_device_support, version + ".zip")
if not os.path.isfile(image_zip_path):
_alias = {
"12.0": "12.0 (16A366).zip",
"12.1": "12.1 (16B91).zip",
"12.2": "12.2 (16E5212e).zip",
"12.4": "12.4 (16G73).zip",
}
zip_name = _alias.get(version, f"{version}.zip")
origin_url = f"https://github.com/JinjunHan/iOSDeviceSupport/tree/master/DeviceSupport/{zip_name}"
mirror_url = f"https://github.com/filsv/iPhoneOSDeviceSupport/raw/master/{zip_name}"
origin_url = f"https://github.com/JinjunHan/iOSDeviceSupport/tree/master/DeviceSupport/{version}.zip"
mirror_url = f"https://github.com/filsv/iPhoneOSDeviceSupport/blob/master/{version}.zip"
log.info("Download %s -> %s", origin_url, image_zip_path)
try:
self._urlretrieve(mirror_url, image_zip_path)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

]
setup(name='py_ios_device',
version="2.2.0",
version="2.2.2",
description='Get ios data and operate ios devices',
author='chenpeijie & liyachao',
author_email='[email protected]',
Expand Down

0 comments on commit 76800e6

Please sign in to comment.