From b59dc010190c0134375e6004819d6c7ead64ab8f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 14 Sep 2026 16:05:02 +0500 Subject: [PATCH] build: run `aqtinstall` in deps directory to avoid stray log file --- nix/build-all.py | 5 ++++- win/installers.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/build-all.py b/nix/build-all.py index 8368d7501c..a8cb9cb1b0 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -1012,7 +1012,10 @@ def install_qt6() -> str: "icu", "qtbase", "qtsvg", - ] + ], + # aqtinstall writes its log as `aqtinstall.log` relative to cwd. Run from + # DEPS_DIR instead of the repo dir so it doesn't leave a stray file there. + cwd=DEPS_DIR, ) if not (qt_config.exists() and qt_core.exists() and qt_svg.exists()): diff --git a/win/installers.py b/win/installers.py index 5fbd5e567a..6c69d18439 100644 --- a/win/installers.py +++ b/win/installers.py @@ -881,6 +881,9 @@ def install_qt6( "--archives", "qtbase", "qtsvg", + # aqtinstall writes its log as `aqtinstall.log` relative to cwd. Run from + # deps_dir instead of the repo's win/ dir so it doesn't leave a stray file there. + cwd=vs_cfg_vars.deps_dir, ) if not QT6_TARGET_INSTALLED: