mirror of
https://github.com/nexu-io/openmotion.git
synced 2026-12-02 06:09:26 +08:00
11 lines
561 B
PowerShell
11 lines
561 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
$motionRoot = Split-Path -Parent $PSScriptRoot
|
|
& "$motionRoot/runtime/node/node.exe" "$motionRoot/scripts/configure-plugin.mjs"
|
|
if ($LASTEXITCODE -ne 0) { throw 'Plugin configuration failed' }
|
|
& codex plugin marketplace add $motionRoot
|
|
if ($LASTEXITCODE -ne 0) { throw 'Marketplace registration failed' }
|
|
& codex plugin add openmotion@openmotion-test
|
|
if ($LASTEXITCODE -ne 0) { throw 'Plugin installation failed' }
|
|
& codex plugin list --marketplace openmotion-test
|
|
if ($LASTEXITCODE -ne 0) { throw 'Plugin verification failed' }
|