Own Unity surface and UI Toolkit packages

This commit is contained in:
Meta Vens 2026-07-10 08:09:39 +01:00
commit 13526a9086
47 changed files with 3484 additions and 3 deletions

View file

@ -0,0 +1,12 @@
param([string] $OutputRoot = "artifacts\packages")
$ErrorActionPreference = "Stop"
$repoRoot = Split-Path -Parent $PSScriptRoot
$packageRoot = Join-Path $repoRoot "packages\org.gamecult.eve.unity-uitoolkit"
$output = if ([IO.Path]::IsPathRooted($OutputRoot)) { $OutputRoot } else { Join-Path $repoRoot $OutputRoot }
New-Item -ItemType Directory -Force -Path $output | Out-Null
$packed = npm pack $packageRoot --pack-destination $output
if ($LASTEXITCODE -ne 0) { throw "EveUnity UI Toolkit package failed to pack" }
$artifact = Join-Path $output ($packed | Select-Object -Last 1)
if (-not (Test-Path -LiteralPath $artifact)) { throw "EveUnity UI Toolkit artifact was not produced: $artifact" }
Write-Host "EveUnity UI Toolkit package: $artifact"