Files
aza/AzA march 2026 - Kopie (13)/build_publish_bundle.ps1

39 lines
1.2 KiB
PowerShell
Raw Normal View History

2026-04-19 20:41:37 +02:00
$projectRoot = $PSScriptRoot
$publishDir = Join-Path $projectRoot "dist\publish"
$installerExe = Join-Path $projectRoot "dist\installer\aza_desktop_setup.exe"
$manifestPath = Join-Path $projectRoot "release\version.json"
$artifactsReport = Join-Path $projectRoot "dist\release_artifacts\release_artifacts.json"
if (-not (Test-Path $installerExe)) {
Write-Error "Installer nicht gefunden: $installerExe"
exit 1
}
if (-not (Test-Path $manifestPath)) {
Write-Error "Release-Manifest nicht gefunden: $manifestPath"
exit 1
}
if (-not (Test-Path $artifactsReport)) {
Write-Error "Release-Artefakt-Report nicht gefunden: $artifactsReport"
exit 1
}
if (Test-Path $publishDir) {
Remove-Item $publishDir -Recurse -Force
}
New-Item -ItemType Directory -Path $publishDir | Out-Null
Copy-Item $installerExe (Join-Path $publishDir "aza_desktop_setup.exe")
Copy-Item $manifestPath (Join-Path $publishDir "version.json")
Copy-Item $artifactsReport (Join-Path $publishDir "release_artifacts.json")
Write-Host "Publish-Bundle erstellt:"
Write-Host $publishDir
Write-Host ""
Write-Host "Enthalten:"
Write-Host "- aza_desktop_setup.exe"
Write-Host "- version.json"
Write-Host "- release_artifacts.json"