#43: M1 Mac support

This commit is contained in:
garronej
2022-04-07 01:35:19 +02:00
parent 79aa5ac5f2
commit 20383d60a9
4 changed files with 23 additions and 5 deletions

5
src/bin/tools/isM1.ts Normal file
View File

@ -0,0 +1,5 @@
import * as os from "os";
export function getIsM1() {
return os.cpus()[0].model.includes("Apple M1");
}