1. Install 7-Zip, NSIS, Subversion and CMake
2. Create initial directory structure
C:/devel
|--mingw32
|--msys
|--mingw32-libs
|--qt6
3. Download i686-11.2.0-release-posix-dwarf-rt_v9-rev4.7z from here and unpack it to C:/devel/mingw32
4. Download msys+7za+wget+svn+git+mercurial+cvs-rev13.7z from here and unpack it to C:/devel/msys
5. Download latest ninja-win.zip from here and unpack ninja.exe to C:/devel/msys/bin
6. Create environment variables PATH and QTDIR with the following content:
PATH=C:\Program Files (x86)\Subversion\bin;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\devel\msys\bin;C:\devel\qt6\bin;C:\devel\mingw32\bin;C:\devel\mingw32-libs\bin;C:\devel\mingw32\opt\bin;C:\Program Files\7-Zip;C:\Program Files (x86)\Subversion\bin;C:\Program Files\CMake\bin;
QTDIR=C:\devel\qt6
7. Download qmmp build scripts
cd C:\devel
svn co https://svn.code.sf.net/p/qmmp-dev/code/trunk/extras/package/win32/ qmmp-win32
8. Check paths in the following files:
C:\devel\qmmp-win32\start_sh.cmd
C:\devel\qmmp-win32\qmmp-2-win32.sh
C:\devel\qmmp-win32\contrib\mingw-libs.sh
C:\devel\qmmp-win32\contrib\start_sh.cmd
9. Install all required libraries. You should start C:\devel\qmmp-win32\contrib\start_sh.cmd and execute the following commands:
./mingw-libs.sh --download
./mingw-libs.sh --install
10. Install Qt libraries. You should start C:\devel\qmmp-win32\contrib\start_sh.cmd and execute the following commands:
./qt6.sh --download
./qt6.sh --install
11. Compile and prepare qmmp package. You should start C:\devel\qmmp-win32\start_sh.cmd and execute the following commands:
./qmmp-2-win32.sh --download
./qmmp-2-win32.sh --install
11. All required files will be in the directory C:\devel\qmmp-win32\tmp\qmmp-distr. Add extra files, modify qmmp.nsi and create package using NSIS installed before.