update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user