@DevWinDemon I also use msys2 ucrt64 qt6, may be you can make things better follow these approaches.
Copy your exe file into a release directory.
Make and run msys2qtdeployplus under the same env, such as mingw64 bash or ucrt64 bash, everything will be ok. the msys2qtdeployplus will do :
(1) Call windeployqt5/6 for every exe and dlls in the release dir, and, extra dep dir as needed.
(2) Repeatly call ldd/ntldd for each dlls in the release dir, copy extra dependcies from msys64/ucrt64 bin dirs to the release dir.
(3) If there were no more extra dlls be copied, goto (4), else, repeat , goto (2)
(4) Finished.
Before this approach, please make sure that ldd /ntldd, windeployqt5 or 6 has been installed by pacman -S, in your env, such as ucrt64. Repeatly calling ldd/ntldd is very important, for example, Qt SQL psql plugin need libpq, but libpq also has its' own deps, libcrypto.dll and so on.
[image: f22d9cd9-76c2-494c-9742-8f8b6efd1078.png]
Call upx tool with "find -exec", for every dll and exe in release dir, using lzma and deep trim switchers, that can significantly reduce the files size. upx can be installed by pacman -S.