update
This commit is contained in:
38
AzA march 2026 - Kopie (18)/build_publish_bundle.ps1
Normal file
38
AzA march 2026 - Kopie (18)/build_publish_bundle.ps1
Normal file
@@ -0,0 +1,38 @@
|
||||
$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"
|
||||
Reference in New Issue
Block a user