25 lines
890 B
PowerShell
25 lines
890 B
PowerShell
# Lokaler Office-Testbuild: Übersetzer-Fix + Presentation-Maker-Platzhalter
|
|
$ErrorActionPreference = "Stop"
|
|
$projectRoot = $PSScriptRoot
|
|
Set-Location $projectRoot
|
|
|
|
$outDir = Join-Path $projectRoot "dist\test_translator_presentation_placeholder_v1"
|
|
Write-Host "Office-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
|
|
Write-Host "Testbuild fertig: $outDir"
|