docs: package EM observation dashboard

This commit is contained in:
梁薄云
2026-08-06 11:50:59 +08:00
parent fbd3ba618a
commit 6034568942
4 changed files with 49 additions and 7 deletions
@@ -47,6 +47,10 @@ if (Test-SamePath $outputDirectoryPath $workspaceRoot) {
if (-not [System.IO.File]::Exists($managedDllPath)) {
throw "Managed DLL does not exist: $managedDllPath"
}
$visualizationDll = Join-Path ([System.IO.Path]::GetDirectoryName($managedDllPath)) 'TrajectoryPlanningVisualization.dll'
if (-not [System.IO.File]::Exists($visualizationDll)) {
throw "Visualization DLL does not exist beside managed DLL: $visualizationDll"
}
if (-not [System.Environment]::Is64BitProcess) {
throw 'Refusing to publish from a non-x64 PowerShell host.'
}
@@ -89,6 +93,7 @@ $movedExistingPlugins = $false
try {
[System.IO.Directory]::CreateDirectory((Join-Path $stagingDirectory 'licenses')) | Out-Null
[System.IO.File]::Copy($managedDllPath, (Join-Path $stagingDirectory 'ClumsyPilot.dll'), $false)
[System.IO.File]::Copy($visualizationDll, (Join-Path $stagingDirectory 'TrajectoryPlanningVisualization.dll'), $false)
[System.IO.File]::Copy($nativeDll, (Join-Path $stagingDirectory 'osqp.dll'), $false)
[System.IO.File]::Copy($license, (Join-Path $stagingDirectory 'licenses\OSQP-LICENSE.txt'), $false)
[System.IO.File]::Copy($notice, (Join-Path $stagingDirectory 'licenses\OSQP-NOTICE.txt'), $false)