jackailocal / scripts /support-bundle.ps1
jackboy70's picture
Deploy: accurate lite-builder note
f25362a
Raw
History Blame Contribute Delete
761 Bytes
param([string]$OutDir = ".\support")
$ErrorActionPreference = "Stop"
New-Item -ItemType Directory -Force -Path $OutDir | Out-Null
$root = Split-Path -Parent $PSScriptRoot
Copy-Item "$root\diagnostics\hardware.json" "$OutDir\hardware.json" -ErrorAction SilentlyContinue
Copy-Item "$root\manifest\sha256-manifest.json" "$OutDir\sha256-manifest.json" -ErrorAction SilentlyContinue
Copy-Item "$root\config\model-catalog.json" "$OutDir\model-catalog.json" -ErrorAction SilentlyContinue
Get-ChildItem "$root\logs" -ErrorAction SilentlyContinue | Copy-Item -Destination $OutDir -ErrorAction SilentlyContinue
Compress-Archive -Path "$OutDir\*" -DestinationPath "$OutDir\JackAILocal-support-bundle.zip" -Force
Write-Host "Created $OutDir\JackAILocal-support-bundle.zip"