From 67c8f6a201c054929791a7b49d191772fe1720b9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 18 Jul 2026 23:32:12 +0100 Subject: [PATCH] Pin released Unity runtime and prove durable catalog import --- Aetheria.State.Import/Program.cs | 18 ++++++++++++++++++ Aetheria.Unity/Packages/manifest.json | 4 ++-- Aetheria.Unity/Packages/packages-lock.json | 10 +++++----- Packages/manifest.json | 2 +- Packages/packages-lock.json | 4 ++-- scripts/verify-aetheria-unity-client.ps1 | 8 ++++---- 6 files changed, 32 insertions(+), 14 deletions(-) diff --git a/Aetheria.State.Import/Program.cs b/Aetheria.State.Import/Program.cs index 9577ea530..d66ae6cb0 100644 --- a/Aetheria.State.Import/Program.cs +++ b/Aetheria.State.Import/Program.cs @@ -373,6 +373,24 @@ await node.CatalogSurface().LatestAsync().ConfigureAwait(false); await node.FlushAsync(); +await using (var reopenedNode = await AetheriaStateNode.OpenAsync( + statePath, + "aetheria-legacy-catalog-import-reopen-proof", + useDirectoryStore: true)) +{ + var reopenedCatalog = await reopenedNode.RuntimeCatalog().LatestAsync().ConfigureAwait(false); + var reopenedCorporationKeys = reopenedCatalog.Corporations + .Select(corporation => corporation.CorporationKey) + .Where(key => !string.IsNullOrWhiteSpace(key)) + .Distinct(StringComparer.Ordinal) + .ToArray(); + if (reopenedCorporationKeys.Length != importedCorporationKeys.Length) + { + throw new InvalidDataException( + $"Reopened runtime catalog projected {reopenedCorporationKeys.Length} corporation keys after the importer flushed {importedCorporationKeys.Length}."); + } +} + Console.WriteLine($"Aetheria legacy catalog mapped into typed state: {statePath}"); Console.WriteLine($"Catalog: {catalog.RelativePath} {catalog.Bytes} bytes {catalog.Fingerprint}"); Console.WriteLine($"Name files: {nameFiles.Length}"); diff --git a/Aetheria.Unity/Packages/manifest.json b/Aetheria.Unity/Packages/manifest.json index a7808d541..a4ce67852 100644 --- a/Aetheria.Unity/Packages/manifest.json +++ b/Aetheria.Unity/Packages/manifest.json @@ -7,9 +7,9 @@ "com.unity.modules.physics": "1.0.0", "com.unity.modules.uielements": "1.0.0", "com.unity.render-pipelines.universal": "17.4.0", - "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.17", + "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.18", "org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3", "org.gamecult.eve.surface": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4", - "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.70" + "org.gamecult.eve.unity-scene": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71" } } diff --git a/Aetheria.Unity/Packages/packages-lock.json b/Aetheria.Unity/Packages/packages-lock.json index e0de181f8..60fb61a0a 100644 --- a/Aetheria.Unity/Packages/packages-lock.json +++ b/Aetheria.Unity/Packages/packages-lock.json @@ -127,11 +127,11 @@ } }, "org.gamecult.cultlib": { - "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.17", + "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.18", "depth": 0, "source": "git", "dependencies": {}, - "hash": "3093b536d497d7f1d5ebb4c96cd2215d617f800f" + "hash": "49c43baa4c80b3bf8f5febae40baf99e1f2a0262" }, "org.gamecult.eve.plugin-fields": { "version": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3", @@ -152,18 +152,18 @@ "hash": "e08fa08335f99e9edddeb706912eecfad07cb281" }, "org.gamecult.eve.unity-scene": { - "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.70", + "version": "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71", "depth": 0, "source": "git", "dependencies": { - "org.gamecult.cultlib": "1.0.15", + "org.gamecult.cultlib": "1.0.18", "org.gamecult.eve.plugin-fields": "0.2.3", "org.gamecult.eve.surface": "0.2.4", "com.unity.mathematics": "1.3.2", "com.unity.render-pipelines.universal": "17.4.0", "com.unity.modules.particlesystem": "1.0.0" }, - "hash": "455f37d486557a49ea957f0bff3512e5944be91d" + "hash": "261aa269db69a5fe5108632d0ca26627b29f2aef" }, "com.unity.modules.assetbundle": { "version": "1.0.0", diff --git a/Packages/manifest.json b/Packages/manifest.json index b38d12e37..2a9d92d99 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -21,7 +21,7 @@ "org.gamecult.aetheria.eve-runtime": "file:org.gamecult.aetheria.eve-runtime", "org.gamecult.aetheria.state": "file:org.gamecult.aetheria.state", "org.gamecult.cultmath": "file:../../CultMath", - "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.17", + "org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.18", "org.gamecult.eve.surface": "file:../../EveUnity/packages/org.gamecult.eve.surface", "org.gamecult.eve.plugin-fields": "https://github.com/GameCult/EvePlugins.git?path=/plugins/eve-plugin-fields/unity/org.gamecult.eve.plugin-fields#eve-plugin-fields-unity-v0.2.3", "org.gamecult.eve.unity-scene": "file:../../EveUnity/packages/org.gamecult.eve.unity-scene", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 5a344bce0..5177c67a7 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -311,11 +311,11 @@ } }, "org.gamecult.cultlib": { - "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.17", + "version": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.18", "depth": 0, "source": "git", "dependencies": {}, - "hash": "3093b536d497d7f1d5ebb4c96cd2215d617f800f" + "hash": "49c43baa4c80b3bf8f5febae40baf99e1f2a0262" }, "org.gamecult.cultmath": { "version": "file:../../CultMath", diff --git a/scripts/verify-aetheria-unity-client.ps1 b/scripts/verify-aetheria-unity-client.ps1 index fa724b356..9f65762c9 100644 --- a/scripts/verify-aetheria-unity-client.ps1 +++ b/scripts/verify-aetheria-unity-client.ps1 @@ -14,14 +14,14 @@ $manifest = Get-Content (Join-Path $ProjectPath "Packages/manifest.json") -Raw | $lock = Get-Content (Join-Path $ProjectPath "Packages/packages-lock.json") -Raw | ConvertFrom-Json $expected = @{ "org.gamecult.cultlib" = @( - "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.17", - "3093b536d497d7f1d5ebb4c96cd2215d617f800f") + "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.18", + "49c43baa4c80b3bf8f5febae40baf99e1f2a0262") "org.gamecult.eve.surface" = @( "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.surface#eveunity-surface-v0.2.4", "e08fa08335f99e9edddeb706912eecfad07cb281") "org.gamecult.eve.unity-scene" = @( - "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.70", - "455f37d486557a49ea957f0bff3512e5944be91d") + "https://github.com/GameCult/EveUnity.git?path=/packages/org.gamecult.eve.unity-scene#eveunity-scene-v0.3.71", + "261aa269db69a5fe5108632d0ca26627b29f2aef") } foreach ($packageName in $expected.Keys) {