5. Папка поставки

Что будет сделано на этой странице: вы соберёте папку dist\TMC_Suite_Qt6_win64, в которой лежат все программы пакета, DLL Qt, MinGW и OpenCASCADE, тексты лицензий, руководства и образцы. Эта папка запускается на другом компьютере без установки и служит источником для установщика (страница 6).


5.1. Что должно быть готово

Что Как проверить
Сборка программ завершилась exit 0 (страница 3) ls "/c/src/TMC_Suite/dist/win64/bin/TplDesigner.exe"
Тексты лицензий сторонних компонентов ls "/c/src/TMC_Suite/src/resources/licenses" — 11 файлов и папка sbom
Python в PATH python --version

Папка src\resources\licenses уже входит в исходный код. Руководства и образцы подготовьте по разделу 5.3.


5.2. Тексты лицензий

Тексты лицензий сторонних компонентов уже лежат в src\resources\licenses. Отдельно собирать их не нужно.


5.3. Руководства и образцы

В репозитории нет руководств в PDF и образцов заданий: их сценарий поставки берёт из папки проекта. Скачайте архив выпуска TMC_Suite_5.0_win64.zip и распакуйте его в отдельную папку. Затем:

  1. Скопируйте папку samples из архива в C:\src\TMC_Suite\samples.
  2. Создайте папки C:\src\TMC_Suite\docs\user-manual\en.
  3. Скопируйте TMC_Suite_5.0_Руководство_пользователя.pdf в docs\user-manual, а TMC_Suite_5.0_User_Manual.pdf — в docs\user-manual\en.

Без папки samples поставка остановится с ошибкой cp: cannot stat. Руководства необязательны: если их нет, сценарий их пропустит.


5.4. Сборка папки поставки — по шагам

  1. Откройте Git Bash.
  2. Выполните:

    sh "/c/src/TMC_Suite/build/package_win.sh"
    

    Необязательный аргумент — другая папка результата (путь Git Bash в кавычках). По умолчанию — dist\TMC_Suite_Qt6_win64.

    Сценарий сначала удаляет папку результата целиком. Не храните в ней свои файлы.

  3. Дождитесь строки готово: … и списка файлов. Точное время не замерялось (минуты).

Вывод на машине разработки (журнал package_2026-10-29.log, сокращено):

samples: убрано служебных 6, путей заменено 12, осталось с личным путём 0 []
Warning: Cannot find any version of the dxcompiler.dll and dxil.dll. This is not a problem unless Direct3D 12 and certain features are used by the application.
Warning: Runtime libraries not found in Qt binary folder, defaulting to looking in path
…
готово: /c/src/TMC_Suite/dist/TMC_Suite_Qt6_win64
LICENSE.txt
NOTICE.txt
Qt6Core.dll
…

Строки Warning: … выводит windeployqt для каждой программы — это нормально: Direct3D 12 программы пакета не используют, а библиотеки MinGW сценарий кладёт сам (шаг 11 ниже).

Если сценарий остановился раньше строки готово:, смотрите последнее сообщение и страницу 8, раздел 8.6.

Git Bash: конец вывода package_win.sh, строка «готово:»
Git Bash: конец вывода package_win.sh, строка «готово:»

5.5. Что делает сценарий — по шагам

Сценарий работает в режиме set -e: любая неудачная команда останавливает его.

  1. Добавляет в PATH MinGW (C:\Qt\Tools\mingw1310_64\bin) и Qt 6.11.3 (C:\Qt\6.11.3\mingw_64\bin).
  2. Удаляет папку результата и создаёт её заново.
  3. Копирует planarrt_h.exe, planarrt_x.exe, tmcgrout.exe, tmcros.exe, tmc_dn.exe из dist\win64\bin (если какого-то нет — остановка); fieldview.exe — если он собран.
  4. Копирует TPL Designer: TplDesigner.exe, gen_lr2.exe и все libTK*.dll из dist\win64\bin; папку models из src\tpl_designer\data\models; TPL-Designer-rukovodstvo.pdf из src\tpl_designer\docs\user-guide.
  5. Копирует чек-лист ПРОВЕРКА_ИНТЕРФЕЙСА.txt (если есть).
  6. Копирует лицензию пакета (Apache 2.0): LICENSE → LICENSE.txt, NOTICE → NOTICE.txt из корня TMC_Suite.
  7. Копирует src\resources\licenses\ → licenses\.
  8. Копирует руководство пользователя PDF (если есть).
  9. Копирует образцы: samples\DEMO\ целиком и из samples\MULTIFREQ\ — README.md, wg_*.tpl, wg_multi.sig, f_diel_sweep.s.
  10. Очищает образцы сценарием build\sanitize_samples.py:
    • полный путь машины сборки в комментариях ! File name … текстовых файлов (.t, .tos, .toc, .soc, .dop) и в заголовке двоичного .s заменяется именем файла (числа не меняются);
    • удаляются служебные файлы вьюверов (*.$os, *.$oc, *.$op, *_Temp0, *_Temp1) и резервные копии *.bak;
    • печатает итог samples: убрано служебных N, путей заменено M, осталось с личным путём K […]; если K больше 0, поставка останавливается.
  11. Для каждого .exe запускает windeployqt --release --no-translations --no-system-d3d-compiler --compiler-runtime --no-opengl-sw — рядом раскладываются нужные DLL и модули Qt 6.11.3.
  12. Кладёт перевод стандартных окон Qt на русский: translations\qtbase_ru.qm.
  13. Докладывает библиотеки MinGW (libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll) из C:\Qt\Tools\mingw1310_64\bin, если windeployqt их не положил.
  14. Печатает готово: <папка> и первые 50 имён из неё.

5.6. Результат

Папка dist\TMC_Suite_Qt6_win64 (на машине разработки — около 188 МБ):

Что Файлы и папки
Программы planarrt_h.exe, planarrt_x.exe, tmcgrout.exe, tmcros.exe, tmc_dn.exe, fieldview.exe, TplDesigner.exe, gen_lr2.exe
Qt 6.11.3 Qt6Core.dll, Qt6Gui.dll, Qt6Network.dll, Qt6OpenGL.dll, Qt6OpenGLWidgets.dll, Qt6PrintSupport.dll, Qt6Svg.dll, Qt6Widgets.dll; папки модулей platforms\ (в ней qwindows.dll), styles\, imageformats\, iconengines\, generic\, networkinformation\, tls\; translations\qtbase_ru.qm
MinGW libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll
OpenCASCADE 23 файла libTK*.dll
Лицензии LICENSE.txt, NOTICE.txt, папка licenses\
Документация TMC_Suite_5.0_Руководство_пользователя.pdf, TPL-Designer-rukovodstvo.pdf, ПРОВЕРКА_ИНТЕРФЕЙСА.txt
Образцы samples\DEMO\ (FieldView, PlanarRT_H, PlanarRT_X, TMCGROUT, TMCROS, TMC_DN, README.md), samples\MULTIFREQ\, models\

Проверка в Git Bash:

cd "/c/src/TMC_Suite/dist/TMC_Suite_Qt6_win64"
ls *.exe
ls platforms/qwindows.dll libstdc++-6.dll licenses translations/qtbase_ru.qm
ls libTK*.dll | wc -l

Ожидается: 8 программ, файлы без ошибок No such file or directory, число 23.

Проводник: папка dist\TMC_Suite_Qt6_win64
Проводник: папка dist\TMC_Suite_Qt6_win64

Папку можно скопировать на другой компьютер с 64-разрядной Windows и запускать программы двойным щелчком — ничего устанавливать не нужно. Для расчёта на видеокарте нужен только обычный драйвер NVIDIA или AMD.


Назад: 4. OpenCASCADE и TPL Designer · Далее: 6. Установщик

5. Distribution folder

What this page covers: you will assemble the dist\TMC_Suite_Qt6_win64 folder, which contains all programs of the package, the Qt, MinGW and OpenCASCADE DLLs, the license texts, the manuals and the samples. This folder runs on another computer without installation and serves as the source for the installer (page 6).


5.1. What must be ready

What How to check
The build of the programs finished with exit 0 (page 3) ls "/c/src/TMC_Suite/dist/win64/bin/TplDesigner.exe"
License texts of third-party components ls "/c/src/TMC_Suite/src/resources/licenses" — 11 files and the sbom folder
Python in PATH python --version

The src\resources\licenses folder is already in the source code. Prepare the manuals and samples as described in section 5.3.


5.2. License texts

The license texts of third-party components are already in src\resources\licenses. They do not have to be built separately.


5.3. Manuals and samples

The repository has neither the PDF manuals nor the sample tasks: the packaging script takes them from the project folder. Download the release archive TMC_Suite_5.0_win64.zip and unpack it into a separate folder. Then:

  1. Copy the samples folder from the archive to C:\src\TMC_Suite\samples.
  2. Create the folders C:\src\TMC_Suite\docs\user-manual\en.
  3. Copy TMC_Suite_5.0_Руководство_пользователя.pdf to docs\user-manual and TMC_Suite_5.0_User_Manual.pdf to docs\user-manual\en.

Without the samples folder the packaging stops with a cp: cannot stat error. The manuals are optional: if they are missing, the script skips them.


5.4. Assembling the distribution folder — step by step

  1. Open Git Bash.
  2. Run:

    sh "/c/src/TMC_Suite/build/package_win.sh"
    

    An optional argument is a different result folder (a Git Bash path in quotes). By default it is dist\TMC_Suite_Qt6_win64.

    The script first deletes the result folder entirely. Do not keep your own files in it.

  3. Wait for the line готово: … ("done: …") and the list of files. The exact time was not measured (minutes).

Output on the development machine (log package_2026-10-29.log, abridged):

samples: убрано служебных 6, путей заменено 12, осталось с личным путём 0 []
Warning: Cannot find any version of the dxcompiler.dll and dxil.dll. This is not a problem unless Direct3D 12 and certain features are used by the application.
Warning: Runtime libraries not found in Qt binary folder, defaulting to looking in path
…
готово: /c/src/TMC_Suite/dist/TMC_Suite_Qt6_win64
LICENSE.txt
NOTICE.txt
Qt6Core.dll
…

The Warning: … lines are printed by windeployqt for each program — this is normal: the programs of the package do not use Direct3D 12, and the script places the MinGW libraries itself (step 13 below).

If the script stopped before the готово: line, look at the last message and page 8, section 8.6.

Git Bash: end of the package_win.sh output, the «готово:» line
Git Bash: end of the package_win.sh output, the «готово:» line

5.5. What the script does — step by step

The script runs in set -e mode: any failed command stops it.

  1. Adds MinGW (C:\Qt\Tools\mingw1310_64\bin) and Qt 6.11.3 (C:\Qt\6.11.3\mingw_64\bin) to PATH.
  2. Deletes the result folder and creates it anew.
  3. Copies planarrt_h.exe, planarrt_x.exe, tmcgrout.exe, tmcros.exe, tmc_dn.exe from dist\win64\bin (if any of them is missing — it stops); fieldview.exe — if it has been built.
  4. Copies TPL Designer: TplDesigner.exe, gen_lr2.exe and all libTK*.dll from dist\win64\bin; the models folder from src\tpl_designer\data\models; TPL-Designer-rukovodstvo.pdf from src\tpl_designer\docs\user-guide.
  5. Copies the ПРОВЕРКА_ИНТЕРФЕЙСА.txt check list (if present).
  6. Copies the package license (Apache 2.0): LICENSE → LICENSE.txt, NOTICE → NOTICE.txt from the root of TMC_Suite.
  7. Copies src\resources\licenses\ → licenses\.
  8. Copies the PDF user manual (if present).
  9. Copies the samples: samples\DEMO\ entirely and from samples\MULTIFREQ\ — README.md, wg_*.tpl, wg_multi.sig, f_diel_sweep.s.
  10. Cleans the samples with the build\sanitize_samples.py script:
    • the full build-machine path in the ! File name … comments of text files (.t, .tos, .toc, .soc, .dop) and in the header of the binary .s is replaced by the file name (the numbers are not changed);
    • the viewers' service files (*.$os, *.$oc, *.$op, *_Temp0, *_Temp1) and backup copies *.bak are deleted;
    • prints the summary samples: убрано служебных N, путей заменено M, осталось с личным путём K […] (service files removed N, paths replaced M, left with a personal path K); if K is greater than 0, the distribution stops.
  11. For each .exe runs windeployqt --release --no-translations --no-system-d3d-compiler --compiler-runtime --no-opengl-sw — the needed Qt 6.11.3 DLLs and modules are placed next to it.
  12. Adds the Russian translation of the standard Qt dialogs: translations\qtbase_ru.qm.
  13. Adds the MinGW libraries (libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll) from C:\Qt\Tools\mingw1310_64\bin if windeployqt did not place them.
  14. Prints готово: <папка> ("done: ") and the first 50 names in it.

5.6. Result

The folder dist\TMC_Suite_Qt6_win64 (about 188 MB on the development machine):

What Files and folders
Programs planarrt_h.exe, planarrt_x.exe, tmcgrout.exe, tmcros.exe, tmc_dn.exe, fieldview.exe, TplDesigner.exe, gen_lr2.exe
Qt 6.11.3 Qt6Core.dll, Qt6Gui.dll, Qt6Network.dll, Qt6OpenGL.dll, Qt6OpenGLWidgets.dll, Qt6PrintSupport.dll, Qt6Svg.dll, Qt6Widgets.dll; module folders platforms\ (containing qwindows.dll), styles\, imageformats\, iconengines\, generic\, networkinformation\, tls\; translations\qtbase_ru.qm
MinGW libgcc_s_seh-1.dll, libstdc++-6.dll, libwinpthread-1.dll
OpenCASCADE 23 libTK*.dll files
Licenses LICENSE.txt, NOTICE.txt, the licenses\ folder
Documentation TMC_Suite_5.0_Руководство_пользователя.pdf, TPL-Designer-rukovodstvo.pdf, ПРОВЕРКА_ИНТЕРФЕЙСА.txt
Samples samples\DEMO\ (FieldView, PlanarRT_H, PlanarRT_X, TMCGROUT, TMCROS, TMC_DN, README.md), samples\MULTIFREQ\, models\

Check in Git Bash:

cd "/c/src/TMC_Suite/dist/TMC_Suite_Qt6_win64"
ls *.exe
ls platforms/qwindows.dll libstdc++-6.dll licenses translations/qtbase_ru.qm
ls libTK*.dll | wc -l

Expected: 8 programs, files without No such file or directory errors, the number 23.

File Explorer: the dist\TMC_Suite_Qt6_win64 folder
File Explorer: the dist\TMC_Suite_Qt6_win64 folder

The folder can be copied to another computer with 64-bit Windows and the programs can be started by double-clicking — nothing needs to be installed. For GPU computing only an ordinary NVIDIA or AMD driver is needed.


Back: 4. OpenCASCADE and TPL Designer · Next: 6. Installer