fix(windows): launch commands on the interactive desktop

This commit is contained in:
cabbage committed 2026-10-27 18:35:29 +00:00
1 parent 30e7bb8545
commit 8d28925e44
20 files changed
+1036 -28

No files matched your search

+3 -2
View File
@@ -10,7 +10,7 @@ usage() {
usage: scripts/windows/build-test-bundle --run-id ID --config FILE [--ca FILE] [--no-build] [--native-fixture]
Builds bin/rvbox.exe in the pinned Docker toolchain, then creates exactly:
.test-runs/ID/windows-bundle/{rvbox.exe,client.toml[,ca.pem],manifest.sha256}
.test-runs/ID/windows-bundle/{rvbox.exe,client.toml,windows_gui_probe.ps1[,ca.pem],manifest.sha256}
The bundle is for the resettable native-test fixture only. The config must use
the target guest paths and the declared test nginx endpoint. Existing bundles
@@ -75,6 +75,7 @@ trap 'rmdir "$bundle" 2>/dev/null || true' INT TERM HUP
install -m 700 "$binary" "$bundle/rvbox.exe"
install -m 600 "$config" "$bundle/client.toml"
install -m 644 "$repo_root/skills/rvbox/scripts/windows_gui_probe.ps1" "$bundle/windows_gui_probe.ps1"
if [ -n "$ca" ]; then install -m 600 "$ca" "$bundle/ca.pem"; fi
commit=$(git -C "$repo_root" rev-parse HEAD)
@@ -82,7 +83,7 @@ commit=$(git -C "$repo_root" rev-parse HEAD)
printf 'run_id=%s\n' "$run_id"
printf 'git_commit=%s\n' "$commit"
printf 'native_fixture=%s\n' "$native_fixture"
(cd "$bundle" && sha256sum rvbox.exe client.toml ${ca:+ca.pem})
(cd "$bundle" && sha256sum rvbox.exe client.toml windows_gui_probe.ps1 ${ca:+ca.pem})
} >"$bundle/manifest.sha256"
chmod 600 "$bundle/manifest.sha256"