release: iriz 0.2.4

This commit is contained in:
public-repo-gate
2026-09-15 03:34:13 +03:00
parent 36c76c6934
commit 2a1ce2297a
109 changed files with 25005 additions and 21092 deletions
+27 -11
View File
@@ -1,34 +1,50 @@
# Пакет шаблона протокола внутри приложения
# Meeting-minutes template package inside the app
Исходный комплект хранится в `Sources/IrizDictate/Resources/MeetingMinutes` без изменений. `Package.swift` включает его через `.copy("Resources/MeetingMinutes")` в `IrizApp_IrizDictate.bundle`.
[English](MEETING-RESOURCES.md) · [Русский](MEETING-RESOURCES.ru.md) · [简体中文](MEETING-RESOURCES.zh.md)
Установленное приложение и приложение внутри DMG содержат один и тот же путь:
**Result:** the packaged app carries the complete meeting-minutes template, and both builders stop if its required contents fail validation.
The source package is stored unchanged in `Sources/IrizDictate/Resources/MeetingMinutes`. `Package.swift` includes it in `IrizApp_IrizDictate.bundle` through `.copy("Resources/MeetingMinutes")`.
The installed app and the app inside the DMG contain the same path:
```text
iriz.app/Contents/Resources/IrizApp_IrizDictate.bundle/MeetingMinutes/
```
Весь комплект переносится целиком: DOCX-шаблон, `fields.json`, `data.schema.json`, manifest, документация, примеры, тесты, вспомогательные скрипты и PT Serif с лицензией OFL. `scripts/build_app.sh` и `scripts/make_release.sh` сохраняют существующее копирование всех соседних SwiftPM-бандлов. Новый обязательный ресурс не заменяет языковой `IrizApp_IrizCore.bundle`.
The entire package is copied: the DOCX template, `fields.json`, `data.schema.json`, the manifest, documentation, examples, tests, helper scripts, and PT Serif with its OFL license.
Оба сборщика останавливаются, если комплект отсутствует, содержит симлинк, обязательный файл пуст или отсутствует, либо изменён шаблон. Проверка повторяется в установленном кандидате и в смонтированном DMG. При отказе до замены установленное приложение не меняется; при отказе после замены действует существующий откат. Выпуск не попадает в `dist`, пока проверки образа не прошли.
`scripts/build_app.sh` and `scripts/make_release.sh` keep the existing behavior of copying every adjacent SwiftPM bundle. The new required resource does not replace the localized `IrizApp_IrizCore.bundle`.
SHA-256 эталонного `template.docx`:
Both builders stop if the package is missing, contains a symlink, has a required file that is empty or missing, or has a modified template. They repeat the check in the installed candidate and in the mounted DMG.
If a check fails before replacement, the installed app is left unchanged. If it fails after replacement, the existing rollback runs. The release does not enter `dist` until the disk-image checks pass.
SHA-256 of the reference `template.docx`:
```text
8b4ffde7a7d09c6f3450b2de8667334fe79f544157553c3e81d77456b43807ff
```
## Работа без каталога сборки
## Running without the build directory
`MeetingTemplate` ищет ресурс относительно bundle приложения или тестового модуля. Абсолютный путь разработчика к `.build` и `Bundle.module` не нужны для запуска упакованного приложения. В `Tests/IrizDictateTests/MeetingDOCXTests.swift` есть проверка отдельно перенесённого `.app`, у которого комплект есть только в `Contents/Resources`.
`MeetingTemplate` looks for the resource relative to the app bundle or the test module. The packaged app does not need a developer's absolute path to `.build` or `Bundle.module`.
Экспорт DOCX выполняется Swift-кодом с системным `/usr/bin/ditto` для ZIP-контейнера. Вложенные `scripts/*.py` и `tests/*.py` — часть исходного комплекта для ручной проверки; приложение их не запускает. Python не является runtime-зависимостью экспорта. Это не отменяет существующее использование Python самим release-сборщиком на машине разработчика или CI.
`Tests/IrizDictateTests/MeetingDOCXTests.swift` checks a separately copied `.app` whose package exists only in `Contents/Resources`.
## Регрессии упаковки
DOCX export uses Swift code and the system `/usr/bin/ditto` for the ZIP container. The bundled `scripts/*.py` and `tests/*.py` belong to the source package for manual checks; the app does not run them.
Python is not a runtime dependency of export. The release builder itself still uses Python on the developer's machine or in CI.
## Packaging regressions
```bash
bash scripts/build_app_test.sh --selftest
bash scripts/make_release_test.sh --selftest
```
Моки работают в собственных временных каталогах, не используют общую `.build`, не подписывают настоящий код, не монтируют образы и не обращаются к `/Applications`. Проверяются полный перенос комплекта и отказы при его потере или изменении. Реальную упаковку нового комплекта и экспорт из скопированного приложения нужно проверить отдельно; зелёный CI baseline 0.2.1 до этой интеграции их не подтверждает.
The mocks use their own temporary directories. They do not use the shared `.build`, sign real code, mount disk images, or access `/Applications`.
The tests cover copying the complete package and rejecting a missing or modified package. Real packaging of the new package and export from a copied app still require a separate check; the green 0.2.1 CI baseline predates this integration and does not confirm either one.
Next: run the two self-tests above before packaging a release.