The Windows ARM64 release package failed to launch on startup due to missing
runtime DLLs (libdbus-1-3.dll, libmd4c.dll, zlib1.dll, libzstd.dll).
This failure stemmed from several architectural and CI pipeline issues:
1. CMake unconditionally linked Qt6::DBus whenever available in the sysroot,
introducing an unnecessary dependency on Qt6DBus.dll and libdbus-1-3.dll
on Windows, even though D-Bus portal dialogs are only used on Linux.
2. The Docker build environment installed MSYS2 ARM64 Qt packages via an
unchecked shell loop against a hardcoded package list. This missed crucial
transitive runtime dependencies (such as md4c, zlib-ng-compat, libb2, and
ICU) and failed silently when downloads or extractions broke.
3. Windows packaging lacked PE import verification, allowing broken packages
with unresolved dynamic links to be produced and published without warning.
To fix these issues and make image management more accessible:
- Restrict Qt6::DBus detection and linking in CMakeLists.txt to Linux only,
eliminating the D-Bus dependency from Windows builds.
- Introduce scripts/download-mingw-arm64-qt.py to parse the MSYS2 clangarm64
database, resolve the complete transitive dependency graph, and verify
essential runtime DLLs during the Docker image build.
- Introduce scripts/verify-windows-dlls.py and integrate it into
packaging/package-windows.sh to validate PE imports across the executable
and bundled Qt plugins, failing packaging if any non-system DLL is missing.
- Expose FORCE_REBUILD_IMAGE as a typed GitLab CI pipeline input (spec: inputs)
to provide an interactive dropdown when triggering manual pipelines in the UI,
and trigger container rebuilds when the download script changes.
- Update AGENTS.md documentation to reflect the new dependency and packaging
verification workflows.
- Add `build-windows-arm64` and `package-windows-arm64` stages to `.gitlab-ci.yml` and wire download links to wiki updates
- Create `scripts/mingw-w64-arm64-toolchain.cmake` targeting `Windows` / `aarch64` with LLVM-MinGW
- Update `docker/Dockerfile.build` with LLVM-MinGW toolchain, MSYS2 Qt 6.10 ARM64 packages, and ARM64 cross-compiled static libraries (libiconv, uchardet, zlib, minizip, libarchive)
- Isolate GCC x86_64 and LLVM-MinGW ARM64 toolchains in `scripts/mingw-w64-toolchain.cmake` and PATH configuration
- Refactor `packaging/package-windows.sh` to package both x86_64 and ARM64 runtime DLLs and support MSYS2 plugin/QML directory layouts
- Update `scripts/test-ci-windows.sh` with `--arm64`, `--only-arm64`, `--image`, and local image detection
- Guard `-mwindows` link flag with `if(MINGW)` in `CMakeLists.txt`
- Document Windows ARM64 build targets and instructions in `AGENTS.md` and `README.md`
- Fail early with clear message when GITLAB_TOKEN is unset
- Capture HTTP status code instead of relying on curl -f
- Handle 404 by creating the wiki page if it doesn't exist yet
- Print API response body on unexpected errors for easier debugging
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>