Release CultLib 1.0.12 with current Unity assemblies

This commit is contained in:
Meta Vens 2026-07-14 01:35:18 +01:00
commit 26b4d1eadc
13 changed files with 17 additions and 3 deletions

View file

@ -1,6 +1,7 @@
param(
[string] $Configuration = "Release",
[string] $OutputDirectory = "artifacts\unity\org.gamecult.cultlib"
[string] $OutputDirectory = "artifacts\unity\org.gamecult.cultlib",
[switch] $UpdateTemplate
)
$ErrorActionPreference = "Stop"
@ -78,6 +79,19 @@ foreach ($assemblyName in $expectedAssemblies) {
}
}
if ($UpdateTemplate) {
$templatePluginRoot = Join-Path $templateRoot "Runtime\Plugins"
foreach ($assemblyName in $expectedAssemblies) {
Copy-Item -LiteralPath (Join-Path $pluginRoot $assemblyName) -Destination $templatePluginRoot -Force
$pdbName = [System.IO.Path]::ChangeExtension($assemblyName, ".pdb")
$pdb = Join-Path $pluginRoot $pdbName
if (Test-Path -LiteralPath $pdb) {
Copy-Item -LiteralPath $pdb -Destination $templatePluginRoot -Force
}
}
Write-Host "Updated tracked Unity package assemblies: $templatePluginRoot"
}
$manifest = Get-Content -LiteralPath (Join-Path $outputRoot "package.json") -Raw | ConvertFrom-Json
Write-Host "CultLib Unity package: $outputRoot"
Write-Host "Package: $($manifest.name)@$($manifest.version)"