This commit is contained in:
2026-05-11 08:27:44 +02:00
parent ab5a0c7697
commit 8261a281c4
96 changed files with 271838 additions and 778 deletions

View File

@@ -73,9 +73,25 @@ if (-not (Test-Path $exePath)) {
exit 1
}
$distRoot = Join-Path $projectRoot "dist\aza_desktop"
Write-Host "Empfang Web-Shell (AZA_EmpfangShell.exe) bauen..."
$shellSpec = Join-Path $projectRoot "AZA_EmpfangShell.spec"
pyinstaller --noconfirm $shellSpec
if ($LASTEXITCODE -ne 0) {
Write-Error "PyInstaller Build AZA_EmpfangShell fehlgeschlagen."
exit 1
}
$shellExeBuilt = Join-Path $projectRoot "dist\AZA_EmpfangShell.exe"
if (-not (Test-Path $shellExeBuilt)) {
Write-Error "AZA_EmpfangShell.exe nicht gefunden: $shellExeBuilt"
exit 1
}
Copy-Item $shellExeBuilt (Join-Path $distRoot "AZA_EmpfangShell.exe") -Force
Write-Host " AZA_EmpfangShell.exe -> dist\aza_desktop\ kopiert"
# backend_url.txt und backend_token.txt auch im dist-Root ablegen (neben der EXE),
# damit Installer und Runtime sie zuverlaessig finden.
$distRoot = Join-Path $projectRoot "dist\aza_desktop"
$internalDir = Join-Path $distRoot "_internal"
foreach ($cfgFile in @("backend_url.txt", "backend_token.txt")) {
$src = Join-Path $internalDir $cfgFile