Исправлена кодировка meta.lsx и выпущен hotfix v0.2.5
All checks were successful
Build Mod Package / build (push) Successful in 4s
All checks were successful
Build Mod Package / build (push) Successful in 4s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<save>
|
<save>
|
||||||
<version major="4" minor="8" revision="0" build="500"/>
|
<version major="4" minor="8" revision="0" build="500"/>
|
||||||
<region id="Config">
|
<region id="Config">
|
||||||
@@ -9,11 +9,11 @@
|
|||||||
<children>
|
<children>
|
||||||
<node id="ModuleShortDesc">
|
<node id="ModuleShortDesc">
|
||||||
<attribute id="Folder" type="LSString" value="DnD2024_897914ef-5c96-053c-44af-0be823f895fe"/>
|
<attribute id="Folder" type="LSString" value="DnD2024_897914ef-5c96-053c-44af-0be823f895fe"/>
|
||||||
<attribute id="MD5" type="LSString" value="ac497558b070a635abecd7d23d4a3125"/>
|
<attribute id="MD5" type="LSString" value="4bd42ca93f895d1ec521a286bea09ef2"/>
|
||||||
<attribute id="Name" type="LSString" value="DnD 5.5e All-in-One BEYOND"/>
|
<attribute id="Name" type="LSString" value="DnD 5.5e All-in-One BEYOND"/>
|
||||||
<attribute id="PublishHandle" type="uint64" value="4419649"/>
|
<attribute id="PublishHandle" type="uint64" value="4419649"/>
|
||||||
<attribute id="UUID" type="guid" value="897914ef-5c96-053c-44af-0be823f895fe"/>
|
<attribute id="UUID" type="guid" value="897914ef-5c96-053c-44af-0be823f895fe"/>
|
||||||
<attribute id="Version64" type="int64" value="144396678084952064"/>
|
<attribute id="Version64" type="int64" value="144396675937468416"/>
|
||||||
</node>
|
</node>
|
||||||
</children>
|
</children>
|
||||||
</node>
|
</node>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
<attribute id="PublishHandle" type="uint64" value="5965149"/>
|
<attribute id="PublishHandle" type="uint64" value="5965149"/>
|
||||||
<attribute id="StartupLevelName" type="FixedString" value=""/>
|
<attribute id="StartupLevelName" type="FixedString" value=""/>
|
||||||
<attribute id="UUID" type="FixedString" value="6401e84d-daf2-416d-adeb-99c03a2487a6"/>
|
<attribute id="UUID" type="FixedString" value="6401e84d-daf2-416d-adeb-99c03a2487a6"/>
|
||||||
<attribute id="Version64" type="int64" value="281483566645248"/>
|
<attribute id="Version64" type="int64" value="281485714128896"/>
|
||||||
<children>
|
<children>
|
||||||
<node id="PublishVersion">
|
<node id="PublishVersion">
|
||||||
<attribute id="Version64" type="int64" value="281477124194304"/>
|
<attribute id="Version64" type="int64" value="281477124194304"/>
|
||||||
|
|||||||
@@ -101,10 +101,10 @@ if (-not (Test-Path -LiteralPath $stagedMetaPath)) {
|
|||||||
throw "Staged meta.lsx was not found: '$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}"
|
$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, $utf8Encoding)
|
||||||
[System.IO.File]::WriteAllText($stagedMetaPath, $stagedMetaContent, $utf8Bom)
|
|
||||||
|
|
||||||
Write-Host "[build.ps1] Staged source tree:"
|
Write-Host "[build.ps1] Staged source tree:"
|
||||||
Get-ChildItem -Recurse $stagingPath | Select-Object FullName, Length | Format-Table -AutoSize
|
Get-ChildItem -Recurse $stagingPath | Select-Object FullName, Length | Format-Table -AutoSize
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ if (-not (Test-Path -LiteralPath $resolvedMetaPath)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$resolvedVersion64 = Convert-VersionTagToVersion64 -Tag $VersionTag
|
$resolvedVersion64 = Convert-VersionTagToVersion64 -Tag $VersionTag
|
||||||
$metaContent = Get-Content -LiteralPath $resolvedMetaPath -Raw
|
$utf8Encoding = [System.Text.UTF8Encoding]::new($false)
|
||||||
|
$metaContent = [System.IO.File]::ReadAllText($resolvedMetaPath, $utf8Encoding)
|
||||||
[xml]$metaXml = $metaContent
|
[xml]$metaXml = $metaContent
|
||||||
|
|
||||||
# Explicitly target ModuleInfo/Version64 via XML path to avoid touching Dependencies/PublishVersion.
|
# Explicitly target ModuleInfo/Version64 via XML path to avoid touching Dependencies/PublishVersion.
|
||||||
@@ -57,7 +58,6 @@ $updatedMeta = [regex]::Replace(
|
|||||||
1
|
1
|
||||||
)
|
)
|
||||||
|
|
||||||
$utf8Bom = New-Object System.Text.UTF8Encoding($true)
|
[System.IO.File]::WriteAllText($resolvedMetaPath, $updatedMeta, $utf8Encoding)
|
||||||
[System.IO.File]::WriteAllText($resolvedMetaPath, $updatedMeta, $utf8Bom)
|
|
||||||
|
|
||||||
Write-Host "[set-version.ps1] Updated '$resolvedMetaPath' to Version64=$resolvedVersion64 (from tag '$VersionTag')."
|
Write-Host "[set-version.ps1] Updated '$resolvedMetaPath' to Version64=$resolvedVersion64 (from tag '$VersionTag')."
|
||||||
|
|||||||
Reference in New Issue
Block a user