File size: 761 Bytes
f25362a | 1 2 3 4 5 6 7 8 9 10 11 | 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"
|