feat: build Cypress for darwin-arm64 (#20686)

This commit is contained in:
Zach Bloomquist
2022-06-15 11:24:50 -04:00
committed by GitHub
parent ad7668e5e3
commit e18b0d567e
26 changed files with 529 additions and 377 deletions
+6 -1
View File
@@ -36,7 +36,12 @@ export const buildDir = function (...args: string[]) {
case 'darwin':
// the new electron-builder for some reason adds its own platform
// subfolder and it is NOT "darwin" but "mac"
return path.resolve(root, 'mac', ...args)
switch (os.arch()) {
case 'arm64':
return path.resolve(root, 'mac-arm64', ...args)
default:
return path.resolve(root, 'mac', ...args)
}
case 'linux':
// https://github.com/cypress-io/cypress/pull/19498
switch (os.arch()) {