Files
aza/AzA march 2026/build_test_license_startup_v1.ps1
2026-06-17 08:02:39 +02:00

32 lines
1.2 KiB
PowerShell

# Lokaler Testbuild: Lizenz-/Programmstart-Hotfix (Hauptfenster zuerst + Aktivierungsdialog).
# Kein Release, unsigned. Stable 1.3.14 unveraendert.
$ErrorActionPreference = "Stop"
$projectRoot = $PSScriptRoot
Set-Location $projectRoot
$outDir = Join-Path $projectRoot "dist\test_license_startup_v1"
Write-Host "Lizenz-Startup-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"