Files
Chili Palmer 00707fd8df
Some checks failed
CI / rust-skia (Rust only) (push) Successful in 2m48s
CI / required (push) Failing after 51s
Package portable grid agent operation (#134)
2026-08-18 12:27:07 +02:00

16 lines
762 B
PowerShell

param(
[Parameter(Mandatory = $true)][string]$BuiltBinary,
[Parameter(Mandatory = $true)][string]$DestinationDirectory
)
$ErrorActionPreference = "Stop"
if (-not (Test-Path -LiteralPath $BuiltBinary -PathType Leaf)) {
throw "BuiltBinary is not a regular file"
}
New-Item -ItemType Directory -Force -Path $DestinationDirectory | Out-Null
$temporary = Join-Path $DestinationDirectory ".metacrate-grid-agent.new.exe"
Copy-Item -LiteralPath $BuiltBinary -Destination $temporary -Force
Move-Item -LiteralPath $temporary -Destination (Join-Path $DestinationDirectory "metacrate-grid-agent.exe") -Force
# Configuration, secrets, conversations, landmarks, and journals live outside
# this directory and are deliberately never created, replaced, or removed.