Add build, deploy and test sources

This commit is contained in:
Paravis committed 2026-11-13 07:52:37 +03:00
1 parent b962581812
commit 3d1a08f230
259 files changed
+15273

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# Deploy Paravis GRUB menu + apps from D: staging to p1.
$src = 'C:\PF\ParavisGrub'
$dst = 'F:\efi\Paravis\Boot\grub2'
New-Item -ItemType Directory -Force "$dst\menu" | Out-Null
New-Item -ItemType Directory -Force "$dst\apps" | Out-Null
Copy-Item "$src\grub.cfg" "$dst\grub.cfg" -Force
Copy-Item "$src\menu\*.cfg" "$dst\menu\" -Force
Copy-Item "$src\apps\memtest86p.efi" "$dst\apps\memtest86p.efi" -Force
Remove-Item "$dst\apps\memtest86.efi" -Force -ErrorAction SilentlyContinue
'--- deployed tree:'
Get-ChildItem $dst -Recurse -File | Select-Object @{n='rel';e={$_.FullName.Replace("$dst\",'')}},Length | Sort-Object rel | Format-Table -AutoSize
'--- syntax check:'
$checker = 'C:\PF\grub2-a1ive\grub\grub-script-check.exe'
Get-ChildItem "$dst\grub.cfg", "$dst\menu\*.cfg" | ForEach-Object {
& $checker $_.FullName
if ($LASTEXITCODE -eq 0) { " OK $($_.Name)" } else { " FAIL $($_.Name)" }
}
'--- main menu head:'
Get-Content "$dst\grub.cfg" -TotalCount 6 | ForEach-Object { ' ' + $_ }
'--- submenu timeouts:'
Get-ChildItem "$dst\menu\*.cfg" | ForEach-Object { ' {0,-14} {1}' -f $_.Name, ((Get-Content $_.FullName -TotalCount 1)) }