From faf67c106107e66fc5f2bb7f3b73bb972f1411e3 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Thu, 22 Oct 2026 13:14:53 -0700 Subject: [PATCH] Repair ARM64 capture loading and Windows teardown Use the ARM desktop subsystem ABI, remove the legacy bootstrap task during preparation, and call the existing job stop method inside the cleanup PowerShell process. Assisted-by: gpt-6.1-sol --- guest/build.py | 2 +- guest/computer-windows.cs | 1 - guest/test.py | 2 +- guest/windows-provision.ps1 | 2 +- tools/vm-computer.py | 3 +-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/guest/build.py b/guest/build.py index 329c0bb9e54deb3bebcfe7346ab81d54c94bbec9..5f75efe85962b24d0403618829b9455a40c9d7f0 100644 --- a/guest/build.py +++ b/guest/build.py @@ -38,7 +38,7 @@ if args.platform == "linux": ], check=True) raise SystemExit(0) args.arch = args.arch or "x86_64" -subsystem = "10.0" if args.arch == "aarch64" else "6.1" +subsystem = "6.2" if args.arch == "aarch64" else "6.1" environment = subprocess.check_output(["zig", "env"], text=True) match = re.search(r'\.lib_dir\s*=\s*"([^"]+)"', environment) library = Path(match[1] if match else json.loads(environment)["lib_dir"]) diff --git a/guest/computer-windows.cs b/guest/computer-windows.cs index 77b4f4e8a2883754a796af02467a440fab1005d7..84def381e8c4e2bdaaf553fb39787297a777da68 100644 --- a/guest/computer-windows.cs +++ b/guest/computer-windows.cs @@ -122,7 +122,6 @@ public static class ComputerWorker { [DllImport("user32.dll")] static extern bool SetProcessDPIAware(); [STAThread] public static void Main(string[] args) { if(args.Length != 2) return; - if(args[0]=="--stop") {try {ComputerProcess.Stop(args[1]);}catch {Environment.Exit(1);}return;} requestPath=args[0];responsePath=args[1]; object result; try { SetProcessDPIAware(); result=Run(Map(json.DeserializeObject(System.IO.File.ReadAllText(requestPath)))); } catch(Exception error) { result=new { error=error.Message }; } diff --git a/guest/test.py b/guest/test.py index 34a2c16195d593f9ec28c1fe58eddbe53e4f3568..244dc86e8d8ddaea2386663e10955a7bc1908f8d 100644 --- a/guest/test.py +++ b/guest/test.py @@ -13,7 +13,7 @@ for arch in ['x86', 'x86_64', 'aarch64']: machine, sections, _, _, _, optional_size = struct.unpack_from('