Publish rAIdio.bot net-install tools: ComfyUI custom-node bundle + minimal FFmpeg build
2512c40 verified | # Build the minimal audio-only ffmpeg (win64, LGPL) via Docker cross-compile. | |
| # Outputs out\ffmpeg.exe, out\ffprobe.exe, out\MANIFEST.txt. | |
| # Does NOT stage to the depot and does NOT launch the app. | |
| $ErrorActionPreference = "Stop" | |
| $here = Split-Path -Parent $MyInvocation.MyCommand.Path | |
| $out = Join-Path $here "out" | |
| if (Test-Path $out) { Remove-Item $out -Recurse -Force } | |
| New-Item -ItemType Directory -Force $out | Out-Null | |
| Write-Host "=== Building minimal ffmpeg (Docker cross-compile) ===" -ForegroundColor Cyan | |
| docker build --target export --output "type=local,dest=$out" $here | |
| if ($LASTEXITCODE -ne 0) { Write-Error "docker build failed (exit $LASTEXITCODE)"; exit 1 } | |
| Write-Host "`n=== Artifacts ===" -ForegroundColor Green | |
| Get-ChildItem $out | Format-Table Name, Length, LastWriteTime | |
| $ff = Join-Path $out "ffmpeg.exe" | |
| if (Test-Path $ff) { | |
| Write-Host "ffmpeg.exe size: $([math]::Round((Get-Item $ff).Length/1MB,1)) MB" | |
| Write-Host "`n=== MANIFEST.txt ===" -ForegroundColor Cyan | |
| Get-Content (Join-Path $out "MANIFEST.txt") | |
| } else { | |
| Write-Error "ffmpeg.exe not produced"; exit 1 | |
| } | |
| Write-Host "`nDONE. Smoke-test out\ffmpeg.exe per README.md before staging." -ForegroundColor Green | |