diff --git a/AGENTS.md b/AGENTS.md index f3fec46..43c0d3f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -22,7 +22,6 @@ - `Mods/DnD 5.5e AIO Russian/meta.lsx` - `Mods/DnD 5.5e AIO Russian/Localization/Russian/russian.xml` - 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. ## Build/CI Contract (MUST) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index cd069e6..05d8b02 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -113,6 +113,8 @@ if (Test-Path -LiteralPath $tempPackagePath) { 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 = @( [ordered]@{ Name = "staging-root"; Source = $stagingPath }, [ordered]@{ Name = "mods-root"; Source = $modsPath },