build: make release restore reproducible

This commit is contained in:
Erik 2026-08-18 10:29:00 +02:00
parent b459e0cf0c
commit c38f6b8852
129 changed files with 16810 additions and 188 deletions

View file

@ -116,10 +116,9 @@ public sealed class DatStringResolverTemplateTests
fragments: ["one\\nline", "two\\tcol"],
variables: []);
Assert.Equal(
["one\nline", "two\tcol"],
resolver.ResolveAll(
TableId, DatStringResolver.ComputeHash("ID_Variants")));
string[] variants = Assert.IsType<string[]>(resolver.ResolveAll(
TableId, DatStringResolver.ComputeHash("ID_Variants")));
Assert.Equal(["one\nline", "two\tcol"], variants);
}
/// <summary>

View file

@ -34,7 +34,8 @@ public sealed class OptionsPanelLiveMountProbeTests
// The production mount: host 0x2100006E slot 0x1000018D (the shape
// OptionsPanelController documents; RetailUiRuntime.MountOptionsPanel
// resolves the SAME way — keep in sync with it).
ElementInfo root = LayoutImporter.ImportInfos(dats, 0x2100006Eu, 0x1000018Du);
ElementInfo root = Assert.IsType<ElementInfo>(
LayoutImporter.ImportInfos(dats, 0x2100006Eu, 0x1000018Du));
ImportedLayout layout = LayoutImporter.Build(root, _ => (0u, 0, 0), null);
Console.WriteLine($"[probe] root id=0x{root.Id:X8} type={root.Type} children={root.Children.Count}");
@ -106,7 +107,8 @@ public sealed class OptionsPanelLiveMountProbeTests
using var dats = new DatCollection(datDir, DatAccessType.Read);
var strings = new DatStringResolver(dats);
ElementInfo root = LayoutImporter.ImportInfos(dats, 0x2100006Eu, 0x1000018Du);
ElementInfo root = Assert.IsType<ElementInfo>(
LayoutImporter.ImportInfos(dats, 0x2100006Eu, 0x1000018Du));
ImportedLayout layout = LayoutImporter.Build(
root, _ => (1u, 8, 8), null, null, strings.Resolve);