AetheriaBuild.Build: one player entry point; AetheriaStores.Open refuses a missing catalog
AetheriaBuild (Assets/Editor) sets the version, builds Addressables, builds the Win64 player, stages GameData through PlayerStaging, publishes AetherDb to ModTools and removes the Burst debug folder; any failure exits 1 naming the step. PlayerStaging is Unity-free and linked into Aetheria.Shared.Tests. A read-only AetheriaStores.Open of a nonexistent catalog throws. Builds on the headless side; the Unity .meta files and the batchmode run follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
fe9da2e0af
commit
b997b80f81
5 changed files with 255 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using GameCult.Caching;
|
||||
using GameCult.Caching.MessagePack;
|
||||
|
|
@ -15,6 +16,9 @@ public static class AetheriaStores
|
|||
// no records at all, a seed store being authored from nothing; a populated catalog is held to it however it opens.
|
||||
public static CultCache Open(string catalogPath, string runPath = null, string playerPath = null, bool catalogWritable = false)
|
||||
{
|
||||
// A read-only open of an absent catalog would hydrate an empty game; a shipped player missing its catalog stops here.
|
||||
if (!catalogWritable && !File.Exists(catalogPath))
|
||||
throw new InvalidOperationException($"Catalog {catalogPath} does not exist; a read-only open never invents one.");
|
||||
var cache = new CultCache();
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue