@@ -280,6 +280,8 @@ def _set_arch(arch: Optional[str], os_name: str, target: str, qt_version_or_spec
280
280
return "android"
281
281
except ValueError :
282
282
pass
283
+ elif os_name == "windows_arm64" and target == "desktop" :
284
+ return "windows_msvc2022_arm64"
283
285
raise CliInputError ("Please supply a target architecture." , should_show_help = True )
284
286
285
287
def _check_mirror (self , mirror ):
@@ -747,7 +749,7 @@ def _set_install_qt_parser(self, install_qt_parser, *, is_legacy: bool):
747
749
748
750
def _set_install_tool_parser (self , install_tool_parser , * , is_legacy : bool ):
749
751
install_tool_parser .set_defaults (func = self .run_install_tool , is_legacy = is_legacy )
750
- install_tool_parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" ], help = "host os name" )
752
+ install_tool_parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" , "windows_arm64" ], help = "host os name" )
751
753
if not is_legacy :
752
754
install_tool_parser .add_argument (
753
755
"target" ,
@@ -804,7 +806,7 @@ def make_parser_sde(cmd: str, desc: str, is_legacy: bool, action, is_add_kde: bo
804
806
805
807
def make_parser_list_sde (cmd : str , desc : str , cmd_type : str ):
806
808
parser = subparsers .add_parser (cmd , description = desc )
807
- parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" ], help = "host os name" )
809
+ parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" , "windows_arm64" ], help = "host os name" )
808
810
parser .add_argument (
809
811
"qt_version_spec" ,
810
812
metavar = "(VERSION | SPECIFICATION)" ,
@@ -852,7 +854,7 @@ def _make_list_qt_parser(self, subparsers: argparse._SubParsersAction):
852
854
"$ aqt list-qt mac desktop --archives 5.9.0 clang_64 # list archives in base Qt installation\n "
853
855
"$ aqt list-qt mac desktop --archives 5.14.0 clang_64 debug_info # list archives in debug_info module\n " ,
854
856
)
855
- list_parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" ], help = "host os name" )
857
+ list_parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" , "windows_arm64" ], help = "host os name" )
856
858
list_parser .add_argument (
857
859
"target" ,
858
860
nargs = "?" ,
@@ -936,7 +938,7 @@ def _make_list_tool_parser(self, subparsers: argparse._SubParsersAction):
936
938
"$ aqt list-tool mac desktop tools_ifw --long # print tool variant names with metadata for QtIFW\n "
937
939
"$ aqt list-tool mac desktop ifw --long # print tool variant names with metadata for QtIFW\n " ,
938
940
)
939
- list_parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" ], help = "host os name" )
941
+ list_parser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" , "windows_arm64" ], help = "host os name" )
940
942
list_parser .add_argument (
941
943
"target" ,
942
944
nargs = "?" ,
@@ -1023,7 +1025,7 @@ def _set_common_arguments(self, subparser, *, is_legacy: bool, is_target_depreca
1023
1025
"""
1024
1026
if is_legacy :
1025
1027
subparser .add_argument ("qt_version" , help = 'Qt version in the format of "5.X.Y"' )
1026
- subparser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" ], help = "host os name" )
1028
+ subparser .add_argument ("host" , choices = ["linux" , "linux_arm64" , "mac" , "windows" , "windows_arm64" ], help = "host os name" )
1027
1029
if is_target_deprecated :
1028
1030
subparser .add_argument (
1029
1031
"target" ,
0 commit comments