From aa480eb774164f7729a533d67101a1999e25674b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 14 Jul 2026 01:46:41 +0100 Subject: [PATCH] Verify released CultMesh content APIs --- scripts/verify-aetheria-unity-client.ps1 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/verify-aetheria-unity-client.ps1 b/scripts/verify-aetheria-unity-client.ps1 index 770bd7511..2e04f6394 100644 --- a/scripts/verify-aetheria-unity-client.ps1 +++ b/scripts/verify-aetheria-unity-client.ps1 @@ -34,15 +34,22 @@ foreach ($packageName in $expected.Keys) { $cultLibPackage = Get-ChildItem (Join-Path $ProjectPath "Library/PackageCache") -Directory | Where-Object Name -Like "org.gamecult.cultlib@*" | + Where-Object { (Get-Content (Join-Path $_.FullName "package.json") -Raw | ConvertFrom-Json).version -eq "1.0.12" } | Select-Object -First 1 if (-not $cultLibPackage) { throw "Resolved CultLib package is missing from Library/PackageCache." } $meshAssembly = Join-Path $cultLibPackage.FullName "Runtime/Plugins/GameCult.Mesh.dll" if (-not (Test-Path $meshAssembly)) { throw "Resolved GameCult.Mesh.dll is missing." } -$meshApi = & rg -a -o "CultMesh[A-Za-z]+" $meshAssembly 2>&1 +$meshApi = & rg -a -o "CultMesh[A-Za-z]+|ContentProvider" $meshAssembly 2>&1 if ($LASTEXITCODE -ne 0) { throw "Unable to inspect GameCult.Mesh.dll metadata.`n$meshApi" } -$bodyApiNames = @("CultMeshBodyPublicationDocument", "CultMeshBodyPublicationHandle", "CultMeshFrameBodyPublisher") -foreach ($apiName in $bodyApiNames) { +$requiredMeshApiNames = @( + "CultMeshBodyPublicationDocument", + "CultMeshBodyPublicationHandle", + "CultMeshFrameBodyPublisher", + "CultMeshContentServer", + "CultMeshSessionContentProviderOptions", + "ContentProvider") +foreach ($apiName in $requiredMeshApiNames) { if (-not ($meshApi | Where-Object { $_ -eq $apiName })) { throw "Resolved GameCult.Mesh.dll does not expose $apiName." }