Skip to content

Commit

Permalink
add macOS Monterey support (oliverschwendener#829)
Browse files Browse the repository at this point in the history
* add macOS Monterey support

* revert version bump
  • Loading branch information
danitt authored Oct 31, 2021
1 parent 9fdd9ce commit 7e7a37e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/helpers/operating-system-helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe(getOperatingSystemVersion, () => {
});

it("should throw an error when passing in an unsupported darwin kernel version", () => {
const unsupportedKernelVersions = ["", " ", " ", "1", "abc", "10.x.x", "11", "12", "13", "21", "22"];
const unsupportedKernelVersions = ["", " ", " ", "1", "abc", "10.x.x", "11", "12", "13", "22"];

let errorCounter = 0;

Expand Down
2 changes: 2 additions & 0 deletions src/common/helpers/operating-system-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function getMacOsVersion(operatingSystemRelease: string): OperatingSystemVersion
return OperatingSystemVersion.MacOsCatalina;
case "20":
return OperatingSystemVersion.MacOsBigSur;
case "21":
return OperatingSystemVersion.MacOsMonterey;
default:
throw new Error(`Unsupported macOS version: ${operatingSystemRelease}`);
}
Expand Down
1 change: 1 addition & 0 deletions src/common/operating-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ export enum OperatingSystemVersion {
MacOsMojave = "macOS 10.14 (Mojave)",
MacOsCatalina = "macOS 10.15 (Catalina)",
MacOsBigSur = "macOS 11.0 (Big Sur)",
MacOsMonterey = "macOS 12.0 (Monterey)",
}

0 comments on commit 7e7a37e

Please sign in to comment.