Files
aza/AzA march 2026/build_test_chat_white_first_open_latency_v1.ps1

31 lines
1.1 KiB
PowerShell
Raw Normal View History

2026-06-17 08:02:39 +02:00
# Lokaler Testbuild: Chat weißes Fenster + Peer-Latenz (kein Release, unsigned)
2026-06-13 22:47:31 +02:00
$ErrorActionPreference = "Stop"
$projectRoot = $PSScriptRoot
Set-Location $projectRoot
2026-06-17 08:02:39 +02:00
$outDir = Join-Path $projectRoot "dist\test_chat_white_first_open_latency_v1"
Write-Host "Chat-Stabilitaets-Testbuild -> $outDir"
2026-06-13 22:47:31 +02:00
Write-Host "Build-Stamp..."
python (Join-Path $projectRoot "aza_build_stamp.py")
Write-Host "PyInstaller aza_desktop..."
pyinstaller --noconfirm (Join-Path $projectRoot "aza_desktop.spec")
if ($LASTEXITCODE -ne 0) { Write-Error "Office-Build fehlgeschlagen"; exit 1 }
$built = Join-Path $projectRoot "dist\aza_desktop"
if (-not (Test-Path (Join-Path $built "aza_desktop.exe"))) {
Write-Error "aza_desktop.exe fehlt in dist\aza_desktop"
exit 1
}
if (Test-Path $outDir) { Remove-Item $outDir -Recurse -Force }
Copy-Item $built $outDir -Recurse -Force
2026-06-17 08:02:39 +02:00
$buildInfo = Join-Path $projectRoot "_build_info.py"
if (Test-Path $buildInfo) {
$stamp = (Select-String -Path $buildInfo -Pattern "BUILD_TIMESTAMP\s*=\s*['`"]([^'`"]+)['`"]").Matches[0].Groups[1].Value
Write-Host "Build-Nummer: $stamp"
}
2026-06-13 22:47:31 +02:00
Write-Host "Testbuild fertig: $outDir"