update
This commit is contained in:
54
AzA march 2026/build_test_final_release_candidate_v13.ps1
Normal file
54
AzA march 2026/build_test_final_release_candidate_v13.ps1
Normal file
@@ -0,0 +1,54 @@
|
||||
# Konsistenter lokaler Office-Release-Candidate v13 (kein Installer, kein Release)
|
||||
# Ein gemeinsamer Build-Stamp fuer alle drei EXEs. Keine EXEs aus V12 mischen.
|
||||
$ErrorActionPreference = "Stop"
|
||||
$projectRoot = $PSScriptRoot
|
||||
Set-Location $projectRoot
|
||||
|
||||
$outDir = Join-Path $projectRoot "dist\test_final_release_candidate_v13"
|
||||
Write-Host "Konsistenter Office-Release-Candidate v13 -> $outDir"
|
||||
|
||||
Write-Host "Build-Stamp (einmal fuer alle drei EXEs)..."
|
||||
python (Join-Path $projectRoot "aza_build_stamp.py")
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Error "Build-Stamp fehlgeschlagen"
|
||||
exit 1
|
||||
}
|
||||
|
||||
$specs = @(
|
||||
@{ Name = "aza_desktop"; Spec = "aza_desktop.spec"; OutFolder = "dist\aza_desktop" },
|
||||
@{ Name = "AZA_EmpfangShell"; Spec = "AZA_EmpfangShell.spec"; OutFile = "dist\AZA_EmpfangShell.exe" },
|
||||
@{ Name = "AZA_KontaktPanel"; Spec = "AZA_KontaktPanel.spec"; OutFile = "dist\AZA_KontaktPanel.exe" }
|
||||
)
|
||||
|
||||
foreach ($s in $specs) {
|
||||
Write-Host "PyInstaller: $($s.Name)..."
|
||||
& pyinstaller --noconfirm (Join-Path $projectRoot $s.Spec)
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Error "Build fehlgeschlagen: $($s.Spec)"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
$desktopBuilt = Join-Path $projectRoot "dist\aza_desktop"
|
||||
$desktopExe = Join-Path $desktopBuilt "aza_desktop.exe"
|
||||
$shellExe = Join-Path $projectRoot "dist\AZA_EmpfangShell.exe"
|
||||
$panelExe = Join-Path $projectRoot "dist\AZA_KontaktPanel.exe"
|
||||
|
||||
foreach ($p in @($desktopExe, $shellExe, $panelExe)) {
|
||||
if (-not (Test-Path $p)) {
|
||||
Write-Error "EXE fehlt nach Build: $p"
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
|
||||
if (Test-Path $outDir) {
|
||||
Remove-Item $outDir -Recurse -Force
|
||||
}
|
||||
|
||||
Copy-Item $desktopBuilt $outDir -Recurse -Force
|
||||
Copy-Item $shellExe (Join-Path $outDir "AZA_EmpfangShell.exe") -Force
|
||||
Copy-Item $panelExe (Join-Path $outDir "AZA_KontaktPanel.exe") -Force
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Testbuild fertig: $outDir"
|
||||
Write-Host "Start: .\start_doku_prompt_test.ps1"
|
||||
Reference in New Issue
Block a user