Skip to content

Commit ab557b9

Browse files
committed
Change the way tools are downloaded for windows
1 parent 6dc5e54 commit ab557b9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/download-tools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
def download_adb_fastboot(platform: str):
2929
"""Download adb and fastboot executable from dl.google.com, extract the zip and save to file."""
30+
if platform == "win32":
31+
platform = "windows"
3032
logger.info(f"Download adb and fastboot for {platform}...")
3133
url = (
3234
f"https://dl.google.com/android/repository/platform-tools-latest-{platform}.zip"
@@ -104,6 +106,7 @@ def move_files_to_lib():
104106

105107

106108
def main(platform: str):
109+
logger.info(f"Run download for {platform}")
107110
download_adb_fastboot(platform=platform)
108111
download_heimdall(platform=platform)
109112
move_files_to_lib()

0 commit comments

Comments
 (0)