From f6a3053563bd50dc77010d2910086c81acdf613e Mon Sep 17 00:00:00 2001 From: Mike Maietta Date: Thu, 26 Aug 2021 20:55:23 -0700 Subject: [PATCH] fix: Support Windows 11 in VMs (#6185) --- .changeset/brown-ads-sparkle.md | 5 +++++ packages/app-builder-lib/src/vm/ParallelsVm.ts | 2 +- packages/app-builder-lib/src/vm/vm.ts | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/brown-ads-sparkle.md diff --git a/.changeset/brown-ads-sparkle.md b/.changeset/brown-ads-sparkle.md new file mode 100644 index 0000000000..fee419c3bd --- /dev/null +++ b/.changeset/brown-ads-sparkle.md @@ -0,0 +1,5 @@ +--- +"app-builder-lib": patch +--- + +fix: Support Windows 11 in VMs diff --git a/packages/app-builder-lib/src/vm/ParallelsVm.ts b/packages/app-builder-lib/src/vm/ParallelsVm.ts index 3f8cb5b216..6734219b88 100644 --- a/packages/app-builder-lib/src/vm/ParallelsVm.ts +++ b/packages/app-builder-lib/src/vm/ParallelsVm.ts @@ -118,6 +118,6 @@ export function macPathToParallelsWindows(file: string) { export interface ParallelsVm { id: string name: string - os: "win-10" | "ubuntu" | "elementary" + os: "win-10" | "win-11" | "ubuntu" | "elementary" state: "running" | "suspended" | "stopped" } diff --git a/packages/app-builder-lib/src/vm/vm.ts b/packages/app-builder-lib/src/vm/vm.ts index f3827a4eee..de888da36c 100644 --- a/packages/app-builder-lib/src/vm/vm.ts +++ b/packages/app-builder-lib/src/vm/vm.ts @@ -22,7 +22,7 @@ export class VmManager { export async function getWindowsVm(debugLogger: DebugLogger): Promise { const parallelsVmModule = await import("./ParallelsVm") - const vmList = (await parallelsVmModule.parseVmList(debugLogger)).filter(it => it.os === "win-10") + const vmList = (await parallelsVmModule.parseVmList(debugLogger)).filter(it => ["win-10", "win-11"].includes(it.os)) if (vmList.length === 0) { throw new InvalidConfigurationError("Cannot find suitable Parallels Desktop virtual machine (Windows 10 is required)") }