From 8c9ba89a748d4c99810b31f3b455d1ed43d9b61f Mon Sep 17 00:00:00 2001
From: Ariver <shanghai3168@gmail.com>
Date: Thu, 02 Jul 2026 01:44:59 +0800
Subject: [PATCH] Prepare 2.1.40 multi-platform package build

---
 privatevoice.src/scripts/build-windows-preview.sh |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/privatevoice.src/scripts/build-windows-preview.sh b/privatevoice.src/scripts/build-windows-preview.sh
index 4549ac9..4fe9bf1 100755
--- a/privatevoice.src/scripts/build-windows-preview.sh
+++ b/privatevoice.src/scripts/build-windows-preview.sh
@@ -4,8 +4,8 @@
 ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
 cd "$ROOT_DIR"
 
-APP_VERSION="2.1.38"
-APP_BUILD="20260629.2014"
+APP_VERSION="2.1.40"
+APP_BUILD="20260702.0143"
 ARCH="${1:-amd64}"
 
 if [[ "$ARCH" != "amd64" ]]; then
@@ -56,6 +56,7 @@
 cp "$SHERPA_DLL_DIR/sherpa-onnx-c-api.dll" "$OUT_DIR/"
 cp "$SHERPA_DLL_DIR/sherpa-onnx-cxx-api.dll" "$OUT_DIR/"
 cp "$ROOT_DIR/scripts/QA-WINDOWS-PREVIEW.ps1" "$OUT_DIR/"
+cp "$ROOT_DIR/scripts/RUN-WINDOWS-QA.cmd" "$OUT_DIR/"
 
 cat >"$OUT_DIR/README-WINDOWS-PREVIEW.txt" <<EOF
 PrivateVoice Dictation Windows Preview
@@ -71,10 +72,10 @@
 How to run:
 1. Extract the whole folder.
 2. Keep the EXE and DLL files in the same directory.
-3. Right-click "QA-WINDOWS-PREVIEW.ps1" and choose "Run with PowerShell".
-4. If PowerShell blocks scripts, run this command from the extracted folder:
+3. Double-click "RUN-WINDOWS-QA.cmd".
+4. If Windows blocks the command file, right-click "QA-WINDOWS-PREVIEW.ps1" and choose "Run with PowerShell", or run this command from the extracted folder:
    powershell -ExecutionPolicy Bypass -File .\\QA-WINDOWS-PREVIEW.ps1
-5. Follow the on-screen checklist. It will launch the app, open a Notepad target file, ask you to dictate once, and collect logs plus the saved target text.
+5. Follow the on-screen checklist. It will collect WebView2/audio preflight data, launch the app, open a Notepad target file, ask you to dictate once, and collect logs plus the saved target text.
 6. You can also run "PrivateVoice Dictation.exe" directly after QA.
 
 Known limitations:

--
Gitblit v1.9.3