Make RTS menu use daemon Eve surface

This commit is contained in:
Meta Vens 2026-07-05 16:17:18 +01:00
commit 7c8a12261d
4 changed files with 108 additions and 188 deletions

View file

@ -96,10 +96,7 @@ app.whenReady().then(async () => {
throw new Error("AETHERIA_RTS_PEER_CULTMESH_ENDPOINTS has been removed. Configure AETHERIA_RTS_CULTMESH_URI and let Odin/CultMesh discover peer endpoints.");
}
if (rendererView === "main-menu") {
showStartup("Launching Aetheria Menu", "Lowering the CultUI main-menu surface.");
mkdirSync(runtimeRoot, { recursive: true });
} else if (launchLocalDaemon) {
if (launchLocalDaemon) {
await ensureDotnetBuild();
showStartup("Launching Aetheria RTS", "Starting the Aetheria daemon.");
mkdirSync(runtimeRoot, { recursive: true });
@ -139,11 +136,11 @@ app.whenReady().then(async () => {
"aetheria-rts-electron",
{ publicationMode: launchLocalDaemon ? "local" : "remote" });
showStartup("Launching Aetheria RTS", "Waiting for the daemon CultMesh frame.");
await rtsClient.waitForFrame(30000);
if (rendererView === "main-menu") {
await mainWindow.loadFile(rendererIndex, { hash: "main-menu" });
} else {
showStartup("Launching Aetheria RTS", "Waiting for the daemon CultMesh frame.");
await rtsClient.waitForFrame(30000);
await mainWindow.loadFile(rendererIndex);
}
if (electronSmoke) {