From df1daee6abd9f024a060011f374be59310419c39 Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Thu, 9 Apr 2026 07:49:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81?= =?UTF-8?q?=D1=82=D0=B8=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0?= =?UTF-8?q?=D1=80=D0=B8=D0=B9=20=D0=BE=20CI-=D0=BE=D1=81=D0=BE=D0=B1=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D0=BE=D1=81=D1=82=D0=B8=20Divine=20=D0=B2=20build.?= =?UTF-8?q?ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 1 - scripts/build.ps1 | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) 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 },