Drop the vendored CultMesh DLLs; depend on org.gamecult.cultlib
Delete the 27 vendored assemblies (55 files under Plugins/CultMesh, plus Plugins.meta) and tools/vendor-cultmesh-unity.ps1. The package now declares org.gamecult.cultlib 1.0.60 and both asmdefs reference GameCult.CultLib, the shape CultLib's own editor-tools package uses. check.ps1 asserts the package ships no .dll and declares the dependency, without pinning a version string. The unity README names the host-manifest requirement. Cut M1 of docs/brokkr-adoption-cut.md. Unity compile is an operator check. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
e94dcf2187
commit
ae19d4e7e0
62 changed files with 18 additions and 147 deletions
|
|
@ -48,21 +48,14 @@ try {
|
|||
Assert-Contains $syncContractText "timeline-frame" "sync contract"
|
||||
Assert-Contains $syncContractText "cinemachine-virtual-camera" "sync contract"
|
||||
|
||||
$pluginRoot = Join-Path (Get-Location) "surfaces\unity\Packages\com.gamecult.brokkr\Plugins\CultMesh"
|
||||
$requiredDlls = @(
|
||||
"GameCult.Caching.dll",
|
||||
"GameCult.Caching.MessagePack.dll",
|
||||
"GameCult.Mesh.dll",
|
||||
"GameCult.Networking.dll",
|
||||
"MessagePack.dll",
|
||||
"R3.dll"
|
||||
)
|
||||
|
||||
foreach ($dll in $requiredDlls) {
|
||||
$path = Join-Path $pluginRoot $dll
|
||||
if (-not (Test-Path $path)) {
|
||||
throw "Missing vendored CultMesh Unity dependency: $path"
|
||||
}
|
||||
$unityPackage = Join-Path (Get-Location) "surfaces\unity\Packages\com.gamecult.brokkr"
|
||||
$vendoredDlls = @(Get-ChildItem -Path $unityPackage -Recurse -Filter "*.dll" -File)
|
||||
if ($vendoredDlls.Count -gt 0) {
|
||||
throw "The Brokkr Unity package must not ship assemblies; org.gamecult.cultlib owns them: $($vendoredDlls.FullName -join ', ')"
|
||||
}
|
||||
$unityManifest = Get-Content (Join-Path $unityPackage "package.json") -Raw | ConvertFrom-Json
|
||||
if (-not $unityManifest.dependencies.PSObject.Properties["org.gamecult.cultlib"]) {
|
||||
throw "surfaces/unity package.json must depend on org.gamecult.cultlib."
|
||||
}
|
||||
|
||||
$bundledPython = Join-Path $env:USERPROFILE ".cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"
|
||||
|
|
|
|||
|
|
@ -1,52 +0,0 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$repoRoot = Split-Path -Parent $PSScriptRoot
|
||||
$cultLibRoot = "E:\Projects\CultLib"
|
||||
$pluginRoot = Join-Path $repoRoot "surfaces\unity\Packages\com.gamecult.brokkr\Plugins\CultMesh"
|
||||
|
||||
dotnet build (Join-Path $cultLibRoot "src\GameCult.Mesh\GameCult.Mesh.csproj") -c Debug
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "CultMesh build failed with exit code $LASTEXITCODE"
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $pluginRoot | Out-Null
|
||||
|
||||
$sources = @(
|
||||
(Join-Path $cultLibRoot "bin\GameCult.Mesh\Debug\netstandard2.1\GameCult.Logging.dll"),
|
||||
(Join-Path $cultLibRoot "bin\GameCult.Mesh\Debug\netstandard2.1\GameCult.Caching.dll"),
|
||||
(Join-Path $cultLibRoot "bin\GameCult.Mesh\Debug\netstandard2.1\GameCult.Caching.MessagePack.dll"),
|
||||
(Join-Path $cultLibRoot "bin\GameCult.Mesh\Debug\netstandard2.1\GameCult.Networking.dll"),
|
||||
(Join-Path $cultLibRoot "bin\GameCult.Mesh\Debug\netstandard2.1\GameCult.Mesh.dll"),
|
||||
"$env:USERPROFILE\.nuget\packages\concurrenthashset\1.3.0\lib\netstandard2.0\ConcurrentCollections.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\isopoh.cryptography.argon2\2.0.0\lib\netstandard2.0\Isopoh.Cryptography.Argon2.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\isopoh.cryptography.blake2b\2.0.0\lib\netstandard2.0\Isopoh.Cryptography.Blake2b.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\isopoh.cryptography.securearray\2.0.0\lib\netstandard2.0\Isopoh.Cryptography.SecureArray.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\litenetlib\2.1.2\lib\netstandard2.1\LiteNetLib.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\messagepack\3.1.4\lib\netstandard2.1\MessagePack.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\messagepack.annotations\3.1.4\lib\netstandard2.0\MessagePack.Annotations.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\microsoft.bcl.asyncinterfaces\9.0.10\lib\netstandard2.1\Microsoft.Bcl.AsyncInterfaces.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\microsoft.bcl.timeprovider\8.0.0\lib\netstandard2.0\Microsoft.Bcl.TimeProvider.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\microsoft.net.stringtools\17.11.4\lib\netstandard2.0\Microsoft.NET.StringTools.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\r3\1.3.0\lib\netstandard2.1\R3.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.buffers\4.5.1\lib\netstandard2.0\System.Buffers.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.collections.immutable\8.0.0\lib\netstandard2.0\System.Collections.Immutable.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.componentmodel.annotations\5.0.0\lib\netstandard2.1\System.ComponentModel.Annotations.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.io.pipelines\9.0.10\lib\netstandard2.0\System.IO.Pipelines.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.memory\4.5.5\lib\netstandard2.0\System.Memory.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.numerics.vectors\4.4.0\lib\netstandard2.0\System.Numerics.Vectors.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.runtime.compilerservices.unsafe\6.0.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.text.encodings.web\9.0.10\lib\netstandard2.0\System.Text.Encodings.Web.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.text.json\9.0.10\lib\netstandard2.0\System.Text.Json.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.threading.channels\8.0.0\lib\netstandard2.1\System.Threading.Channels.dll",
|
||||
"$env:USERPROFILE\.nuget\packages\system.threading.tasks.extensions\4.5.4\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll"
|
||||
)
|
||||
|
||||
foreach ($source in $sources) {
|
||||
if (!(Test-Path $source)) {
|
||||
throw "Missing CultMesh Unity dependency: $source"
|
||||
}
|
||||
|
||||
Copy-Item -LiteralPath $source -Destination $pluginRoot -Force
|
||||
}
|
||||
|
||||
Write-Host "Vendored CultMesh Unity dependencies into $pluginRoot"
|
||||
Loading…
Reference in a new issue