31 lines
1.1 KiB
PowerShell
31 lines
1.1 KiB
PowerShell
# Lokaler Testbuild: Chat weißes Fenster + Peer-Latenz (kein Release, unsigned)
|
|
$ErrorActionPreference = "Stop"
|
|
$projectRoot = $PSScriptRoot
|
|
Set-Location $projectRoot
|
|
|
|
$outDir = Join-Path $projectRoot "dist\test_chat_white_first_open_latency_v1"
|
|
Write-Host "Chat-Stabilitaets-Testbuild -> $outDir"
|
|
|
|
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
|
|
|
|
$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"
|
|
}
|
|
Write-Host "Testbuild fertig: $outDir"
|