Refresh Unity CultMesh dependencies

This commit is contained in:
Meta Vens 2026-06-27 14:51:35 +01:00
commit eeb4e82253
16 changed files with 128 additions and 15 deletions

View file

@ -13,8 +13,30 @@
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"overrideReferences": true,
"precompiledReferences": [
"ConcurrentCollections.dll",
"GameCult.Caching.MessagePack.dll",
"GameCult.Caching.dll",
"GameCult.Logging.dll",
"GameCult.Mesh.dll",
"GameCult.Networking.dll",
"Isopoh.Cryptography.Argon2.dll",
"Isopoh.Cryptography.Blake2b.dll",
"Isopoh.Cryptography.SecureArray.dll",
"LiteNetLib.dll",
"Microsoft.Bcl.AsyncInterfaces.dll",
"Microsoft.Bcl.TimeProvider.dll",
"Microsoft.NET.StringTools.dll",
"MessagePack.Annotations.dll",
"MessagePack.CultMesh.dll",
"R3.dll",
"System.Collections.Immutable.dll",
"System.IO.Pipelines.dll",
"System.Text.Encodings.Web.dll",
"System.Text.Json.dll",
"System.Threading.Channels.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],

View file

@ -1,2 +1,27 @@
fileFormatVersion: 2
guid: 36d3af9ac3f57cb46b1cbd574931f69c
guid: 36d3af9ac3f57cb46b1cbd574931f69c
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 1
validateReferences: 0
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,27 @@
fileFormatVersion: 2
guid: 28ef17d784838b64cb4be5ebdc1ee8a0
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 1
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View file

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 28ef17d784838b64cb4be5ebdc1ee8a0

View file

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 230003b782f92e349a35339fb2320133

View file

@ -8,8 +8,30 @@
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"overrideReferences": true,
"precompiledReferences": [
"ConcurrentCollections.dll",
"GameCult.Caching.MessagePack.dll",
"GameCult.Caching.dll",
"GameCult.Logging.dll",
"GameCult.Mesh.dll",
"GameCult.Networking.dll",
"Isopoh.Cryptography.Argon2.dll",
"Isopoh.Cryptography.Blake2b.dll",
"Isopoh.Cryptography.SecureArray.dll",
"LiteNetLib.dll",
"Microsoft.Bcl.AsyncInterfaces.dll",
"Microsoft.Bcl.TimeProvider.dll",
"Microsoft.NET.StringTools.dll",
"MessagePack.Annotations.dll",
"MessagePack.CultMesh.dll",
"R3.dll",
"System.Collections.Immutable.dll",
"System.IO.Pipelines.dll",
"System.Text.Encodings.Web.dll",
"System.Text.Json.dll",
"System.Threading.Channels.dll"
],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],

View file

@ -3,6 +3,12 @@ $ErrorActionPreference = "Stop"
$repoRoot = Split-Path -Parent $PSScriptRoot
$cultLibRoot = "E:\Projects\CultLib"
$pluginRoot = Join-Path $repoRoot "surfaces\unity\Packages\com.gamecult.brokkr\Plugins\CultMesh"
$staleUnityConflicts = @(
"MessagePack.dll",
"MessagePack.dll.meta",
"System.Numerics.Vectors.dll",
"System.Numerics.Vectors.dll.meta"
)
dotnet build (Join-Path $cultLibRoot "src\GameCult.Mesh\GameCult.Mesh.csproj") -c Debug
if ($LASTEXITCODE -ne 0) {
@ -22,8 +28,8 @@ $sources = @(
"$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",
@{ Source = "$env:USERPROFILE\.nuget\packages\messagepack\3.1.7\lib\netstandard2.1\MessagePack.dll"; Target = "MessagePack.CultMesh.dll" },
"$env:USERPROFILE\.nuget\packages\messagepack.annotations\3.1.7\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",
@ -33,7 +39,6 @@ $sources = @(
"$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",
@ -41,12 +46,28 @@ $sources = @(
"$env:USERPROFILE\.nuget\packages\system.threading.tasks.extensions\4.5.4\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll"
)
foreach ($staleFile in $staleUnityConflicts) {
$stalePath = Join-Path $pluginRoot $staleFile
if (Test-Path $stalePath) {
Remove-Item -LiteralPath $stalePath -Force
}
}
foreach ($source in $sources) {
if (!(Test-Path $source)) {
throw "Missing CultMesh Unity dependency: $source"
if ($source -is [System.Collections.IDictionary]) {
$sourcePath = $source.Source
$targetPath = Join-Path $pluginRoot $source.Target
}
else {
$sourcePath = $source
$targetPath = Join-Path $pluginRoot (Split-Path -Leaf $sourcePath)
}
Copy-Item -LiteralPath $source -Destination $pluginRoot -Force
if (!(Test-Path $sourcePath)) {
throw "Missing CultMesh Unity dependency: $sourcePath"
}
Copy-Item -LiteralPath $sourcePath -Destination $targetPath -Force
}
Write-Host "Vendored CultMesh Unity dependencies into $pluginRoot"