From eca39344cd9d2a37fb52ef1c5f4fe3c11f6525cb Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 1 Nov 2026 22:02:52 +0100 Subject: v4.3.1: render Windows through wgpu and keep the installer window open Windows 10 1809 sessions with only the Microsoft display driver expose OpenGL 1.1, which egui_glow refuses. The Windows build now uses wgpu on Direct3D 12 and its adapter selector accepts WARP, the software rasterizer, after every hardware class, so a VM or Remote Desktop session still starts. Linux keeps the smaller glow renderer. The GUI is a windows-subsystem binary now, so launching it from the Start menu does not flash a console; startup failures and --help go to a native message box. The PowerShell installer pauses before closing unless -NoPause is passed. --- scripts/installers/windows.ps1.in | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scripts/installers/windows.ps1.in') diff --git a/scripts/installers/windows.ps1.in b/scripts/installers/windows.ps1.in index fd2b8b3..4b8e61d 100644 --- a/scripts/installers/windows.ps1.in +++ b/scripts/installers/windows.ps1.in @@ -6,6 +6,9 @@ # # Run it with: # powershell -ExecutionPolicy Bypass -File .\zagan-bet-gui-*-install.ps1 +# Add -NoPause to run it unattended. +param([switch]$NoPause) + $ErrorActionPreference = "Stop" $Version = "__VERSION__" @@ -13,9 +16,16 @@ $Binary = "__BINARY__" $Sha256 = "__SHA256__" $Url = "__URL__" +function Finish([int]$Code) { + if (-not $NoPause) { + Read-Host "Press Enter to close" | Out-Null + } + exit $Code +} + function Stop-Install([string]$Message) { Write-Host "install: $Message" -ForegroundColor Red - exit 1 + Finish 1 } $here = Split-Path -Parent $MyInvocation.MyCommand.Path @@ -73,3 +83,5 @@ try { Remove-Item -LiteralPath $temporary -Force } } + +Finish 0 -- cgit v1.2.3