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:
@@ -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)"
|
||||
Reference in New Issue
Block a user