Skip to content

Commit

Permalink
Override host/target for src/docs if Qt >= 6.7.0
Browse files Browse the repository at this point in the history
Fixes #775
  • Loading branch information
rectalogic committed Apr 11, 2024
1 parent cf4bda9 commit 65501b1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion aqt/archives.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,14 @@ def _append_depends_tool(self, arch, tool_name):
self._append_tool_update(os_target_folder, update_xml, arch, None)

def _get_archives_base(self, name, target_packages):
os_name = self.os_name
if self.os_name == "windows":
os_name += "_x86"
elif os_name != "linux_arm64" and os_name != "all_os":
os_name += "_x64"
os_target_folder = posixpath.join(
"online/qtsdkrepository",
self.os_name + ("_x86" if self.os_name == "windows" else ("" if self.os_name == "linux_arm64" else "_x64")),
os_name,
self.target,
# tools_ifw/
name,
Expand Down
4 changes: 4 additions & 0 deletions aqt/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ def _run_src_doc_examples(self, flavor, args, cmd_name: Optional[str] = None):
else:
qt_version = args.qt_version
Cli._validate_version_str(qt_version)
# Override target/os for recent Qt
if Version(qt_version) >= Version("6.7.0"):
target = "qt"
os_name = "all_os"
if args.timeout is not None:
timeout = (args.timeout, args.timeout)
else:
Expand Down

0 comments on commit 65501b1

Please sign in to comment.