From 5df683eba7c103010a7c110d97a5fd808b39fe46 Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Thu, 02 Jul 2026 01:47:41 +0800
Subject: [PATCH] Fix local universal macOS package assembly
---
privatevoice.src/scripts/QA-WINDOWS-PREVIEW.ps1 | 41 +++++++++++++++++++++++++++++++++++++++++
1 files changed, 41 insertions(+), 0 deletions(-)
diff --git a/privatevoice.src/scripts/QA-WINDOWS-PREVIEW.ps1 b/privatevoice.src/scripts/QA-WINDOWS-PREVIEW.ps1
index b9c1581..7f9639b 100644
--- a/privatevoice.src/scripts/QA-WINDOWS-PREVIEW.ps1
+++ b/privatevoice.src/scripts/QA-WINDOWS-PREVIEW.ps1
@@ -63,6 +63,47 @@
Add-Result $Results "system info collected" $false $_.Exception.Message
}
+Write-Step "Collecting Windows runtime preflight"
+try {
+ $webview2Entries = @()
+ $uninstallRoots = @(
+ "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*",
+ "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*",
+ "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*"
+ )
+ foreach ($root in $uninstallRoots) {
+ $webview2Entries += Get-ItemProperty $root -ErrorAction SilentlyContinue |
+ Where-Object { $_.DisplayName -match "WebView2" } |
+ Select-Object DisplayName, DisplayVersion, Publisher, InstallLocation
+ }
+ if ($webview2Entries.Count -gt 0) {
+ $webview2Entries | Format-List | Out-String | Set-Content -Encoding UTF8 (Join-Path $EvidenceDir "webview2-runtime.txt")
+ } else {
+ "No WebView2 Runtime entry found in standard uninstall registry paths. App startup logs remain authoritative." |
+ Set-Content -Encoding UTF8 (Join-Path $EvidenceDir "webview2-runtime.txt")
+ }
+ Add-Result $Results "WebView2 registry inventory collected" $true "entries=$($webview2Entries.Count)"
+} catch {
+ Add-Result $Results "WebView2 registry inventory collected" $false $_.Exception.Message
+}
+
+try {
+ if (Get-Command Get-PnpDevice -ErrorAction SilentlyContinue) {
+ Get-PnpDevice -Class AudioEndpoint -ErrorAction SilentlyContinue |
+ Select-Object Status, Class, FriendlyName, InstanceId |
+ Format-Table -AutoSize | Out-String |
+ Set-Content -Encoding UTF8 (Join-Path $EvidenceDir "audio-endpoints.txt")
+ } else {
+ Get-CimInstance Win32_SoundDevice -ErrorAction SilentlyContinue |
+ Select-Object Status, Name, Manufacturer, DeviceID |
+ Format-Table -AutoSize | Out-String |
+ Set-Content -Encoding UTF8 (Join-Path $EvidenceDir "audio-endpoints.txt")
+ }
+ Add-Result $Results "audio endpoint inventory collected" $true
+} catch {
+ Add-Result $Results "audio endpoint inventory collected" $false $_.Exception.Message
+}
+
if (-not $CollectOnly -and -not $NoLaunch) {
Write-Step "Launching app"
if (-not (Test-Path $ExePath)) {
--
Gitblit v1.9.3