We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965d5fc commit c09e600Copy full SHA for c09e600
src/commands/test.js
@@ -55,14 +55,15 @@ function getPlatform() {
55
const release = os.release();
56
const cpuCore = os.cpus()[0];
57
const majorVersion = release.substr(0, release.indexOf('.'));
58
+ const isM1 = cpuCore.model.includes("Apple M1");
59
- if (arch === 'x64' || (arch === 'arm64' && cpuCore.model.includes("M1"))) {
60
+ if (arch === 'x64' || (arch === 'arm64' && isM1)) {
61
if (type === 'Darwin') {
62
if (majorVersion === '19') {
63
return 'binary-macos-10.15';
64
} else if (majorVersion === '18') {
65
return 'binary-macos-10.14';
- } else if (cpuCore.model.includes("M1")) {
66
+ } else if (isM1) {
67
return 'binary-macos-11-m1';
68
}
69
return 'binary-macos-11';
0 commit comments