Change updater target path for Qt 6.2.0 for mac

Use `macos` other than `clang_64` for Qt6.2.0 and later on mac/desktop

Signed-off-by: Hiroshi Miura <miurahr@linux.com>
This commit is contained in:
Hiroshi Miura
2021-07-01 13:45:26 +09:00
parent 67506c053b
commit 1a7cba1c7f

View File

@@ -271,6 +271,8 @@ class Updater:
"""
logger = getLogger("aqt.updater")
arch = target.arch
version = Version(target.version)
os_name = target.os_name
if arch is None:
arch_dir = ""
elif arch.startswith("win64_mingw"):
@@ -279,6 +281,8 @@ class Updater:
arch_dir = arch[6:] + "_32"
elif arch.startswith("win"):
arch_dir = arch[6:]
elif version in SimpleSpec(">=6.2") and os_name == "mac" and arch == "clang_64":
arch_dir = "macos"
else:
arch_dir = arch
try: