Исправлена кодировка meta.lsx и выпущен hotfix v0.2.5
All checks were successful
Build Mod Package / build (push) Successful in 4s

This commit is contained in:
2026-04-10 12:23:12 +03:00
parent ec062817dc
commit d2299199ba
3 changed files with 10 additions and 10 deletions

View File

@@ -101,10 +101,10 @@ if (-not (Test-Path -LiteralPath $stagedMetaPath)) {
throw "Staged meta.lsx was not found: '$stagedMetaPath'."
}
$stagedMetaContent = Get-Content -LiteralPath $stagedMetaPath -Raw
$utf8Encoding = [System.Text.UTF8Encoding]::new($false)
$stagedMetaContent = [System.IO.File]::ReadAllText($stagedMetaPath, $utf8Encoding)
$stagedMetaContent = $stagedMetaContent -replace '(<attribute id="Version64" type="int64" value=")\d+("/>)', "`${1}$resolvedVersion64`${2}"
$utf8Bom = New-Object System.Text.UTF8Encoding($true)
[System.IO.File]::WriteAllText($stagedMetaPath, $stagedMetaContent, $utf8Bom)
[System.IO.File]::WriteAllText($stagedMetaPath, $stagedMetaContent, $utf8Encoding)
Write-Host "[build.ps1] Staged source tree:"
Get-ChildItem -Recurse $stagingPath | Select-Object FullName, Length | Format-Table -AutoSize