# UO: Windows PowerShell (lokal) # Baut AZA_DevStatus_Handover.exe und kopiert nach AzA Drive. # Optional: kopiert die Excel-Datenquelle aus Downloads, falls vorhanden. $ErrorActionPreference = "Stop" $ProjectRoot = "C:\Users\surov\Documents\AZA_GIT\aza\AzA march 2026" $AzADrive = "C:\Users\surov\Documents\AzA Drive" $ExcelName = "AZA_DevStatus_Handover_2026-05-14.xlsx" $ExcelDownloads = Join-Path $env:USERPROFILE "Downloads\$ExcelName" Set-Location $ProjectRoot py -3 -m pip install --disable-pip-version-check pyinstaller py -3 -m PyInstaller .\AZA_DevStatus_Handover.spec --noconfirm $BuiltExe = Join-Path $ProjectRoot "dist\AZA_DevStatus_Handover.exe" if (-not (Test-Path $BuiltExe)) { throw "Build fehlgeschlagen: $BuiltExe fehlt" } $DestExe = Join-Path $AzADrive "AZA_DevStatus_Handover.exe" Copy-Item -LiteralPath $BuiltExe -Destination $DestExe -Force if (Test-Path -LiteralPath $ExcelDownloads) { Copy-Item -LiteralPath $ExcelDownloads -Destination (Join-Path $AzADrive $ExcelName) -Force } $h = Get-FileHash -LiteralPath $DestExe -Algorithm SHA256 $i = Get-Item -LiteralPath $DestExe Write-Host ("EXE: " + $i.FullName) Write-Host ("Size: " + $i.Length + " LastWriteTime: " + $i.LastWriteTime) Write-Host ("SHA256: " + $h.Hash)