add dashboard

This commit is contained in:
2026-11-12 14:03:53 +01:00
parent 53f1896d05
commit 68bb7ff810
14 changed files with 2037 additions and 280 deletions

View File

@@ -47,9 +47,14 @@ New-Item -ItemType Directory $lucide | Out-Null
foreach ($f in 'sprite.svg', 'LICENSE', 'package.json') { Copy-Item (Join-Path $here "node_modules\lucide-static\$f") $lucide }
# cleanup.ps1 (shipped copy, used when the projects folder has no _Tools\Cleanup)
$cleanup = Join-Path (Split-Path $here -Parent) 'Cleanup\cleanup.ps1'
New-Item -ItemType Directory (Join-Path $payload 'tools') | Out-Null
Copy-Item $cleanup (Join-Path $payload 'tools\cleanup.ps1')
# dashboard inside _Tools (..\Cleanup) or next to it (..\_Tools\Cleanup); without it the
# shipped exe measures sizes but offers nothing to delete
$parent = Split-Path $here -Parent
$cleanup = @((Join-Path $parent 'Cleanup\cleanup.ps1'), (Join-Path $parent '_Tools\Cleanup\cleanup.ps1')) | Where-Object { Test-Path $_ } | Select-Object -First 1
if ($cleanup) {
New-Item -ItemType Directory (Join-Path $payload 'tools') | Out-Null
Copy-Item $cleanup (Join-Path $payload 'tools\cleanup.ps1')
} else { Write-Warning 'cleanup.ps1 nicht gefunden - die exe misst Groessen, bietet aber nichts zum Aufraeumen an.' }
# node.exe of this PC (MIT license, copied alongside)
$nodeExe = (Get-Command node -ErrorAction Stop).Source