chore: Fix build path for electron-builder on arm64 linux (#19498)

Co-authored-by: Blue F <blue@everblue.info>
This commit is contained in:
Kevin Leung
2022-01-06 02:04:32 +08:00
committed by GitHub
parent 5046498d3b
commit c9d29430ea
+7 -1
View File
@@ -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: