mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-05 14:30:32 -05:00
chore: Fix build path for electron-builder on arm64 linux (#19498)
Co-authored-by: Blue F <blue@everblue.info>
This commit is contained in:
@@ -38,7 +38,13 @@ export const buildDir = function (...args: string[]) {
|
||||
// subfolder and it is NOT "darwin" but "mac"
|
||||
return path.resolve(root, 'mac', ...args)
|
||||
case 'linux':
|
||||
return path.resolve(root, 'linux-unpacked', ...args)
|
||||
// https://github.com/cypress-io/cypress/pull/19498
|
||||
switch (os.arch()) {
|
||||
case 'arm64':
|
||||
return path.resolve(root, 'linux-arm64-unpacked', ...args)
|
||||
default:
|
||||
return path.resolve(root, 'linux-unpacked', ...args)
|
||||
}
|
||||
case 'win32':
|
||||
return path.resolve(root, 'win-unpacked', ...args)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user