Build und Deploy getrennt: gemeinsames build.sh, Deploy-Skripte pro OS

build.sh baut nur noch (OS-Weiche für die Bundle-Liste: macOS app,dmg,
Linux deb,rpm, Git-Bash nsis); die macOS-Nachbereitung (lsregister,
.noindex) zieht nach deploy-macos.sh um. deploy-linux.sh installiert das
jüngste Bundle (dnf: rpm -Uvh --force, apt: dpkg -i),
deploy-windows.ps1 startet den NSIS-Installer.
This commit is contained in:
marcus hinz
2026-07-20 10:57:25 +02:00
parent b9d006184a
commit a1c95dae4a
4 changed files with 76 additions and 19 deletions
+13
View File
@@ -0,0 +1,13 @@
# Windows-Deploy nach dem Build (--bundles nsis): jüngsten Installer starten.
$ErrorActionPreference = "Stop"
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
$installer = Get-ChildItem "$dir\src-tauri\target\release\bundle\nsis\ai-control_*-setup.exe" |
Sort-Object LastWriteTime -Descending | Select-Object -First 1
if (-not $installer) {
Write-Error "kein Installer gefunden — erst build.sh (Git-Bash) mit nsis-Bundle laufen lassen"
}
Start-Process -Wait $installer.FullName
Write-Output "installiert: $($installer.Name)"