Перенести комментарий о CI-особенности Divine в build.ps1
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user