Skip to content

Commit

Permalink
fix: Support Windows 11 in VMs (#6185)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Aug 27, 2021
1 parent 7f933d0 commit f6a3053
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-ads-sparkle.md
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix: Support Windows 11 in VMs
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/vm/ParallelsVm.ts
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion packages/app-builder-lib/src/vm/vm.ts
Expand Up @@ -22,7 +22,7 @@ export class VmManager {

export async function getWindowsVm(debugLogger: DebugLogger): Promise<VmManager> {
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)")
}
Expand Down

0 comments on commit f6a3053

Please sign in to comment.