Перенести комментарий о CI-особенности Divine в build.ps1

This commit is contained in:
2026-04-09 07:49:11 +03:00
parent 9d1a26c8e0
commit df1daee6ab
2 changed files with 2 additions and 1 deletions

View File

@@ -22,7 +22,6 @@
- `Mods/DnD 5.5e AIO Russian/meta.lsx` - `Mods/DnD 5.5e AIO Russian/meta.lsx`
- `Mods/DnD 5.5e AIO Russian/Localization/Russian/russian.xml` - `Mods/DnD 5.5e AIO Russian/Localization/Russian/russian.xml`
- Must not leak into `.pak`: `.git`, `.gitea`, `scripts`, `tools`, `.tools`, `build`, staging dirs. - Must not leak into `.pak`: `.git`, `.gitea`, `scripts`, `tools`, `.tools`, `build`, staging dirs.
- Known CI quirk: Divine may produce broken ~48-byte `.pak`; mitigation is in `scripts/build.ps1`.
- Staging for packaging must be in `%TEMP%`, not in dot-prefixed repo dirs. - Staging for packaging must be in `%TEMP%`, not in dot-prefixed repo dirs.
## Build/CI Contract (MUST) ## Build/CI Contract (MUST)

View File

@@ -113,6 +113,8 @@ if (Test-Path -LiteralPath $tempPackagePath) {
Remove-Item -LiteralPath $tempPackagePath -Force Remove-Item -LiteralPath $tempPackagePath -Force
} }
# CI quirk: Divine can occasionally emit a broken ~48-byte package for some source roots.
# Mitigation: try staged/mods/workspace sources and accept only outputs that look valid by size.
$packageAttempts = @( $packageAttempts = @(
[ordered]@{ Name = "staging-root"; Source = $stagingPath }, [ordered]@{ Name = "staging-root"; Source = $stagingPath },
[ordered]@{ Name = "mods-root"; Source = $modsPath }, [ordered]@{ Name = "mods-root"; Source = $modsPath },