Skip to content

Commit 3840648

Browse files
authored
fix: Support arm64 on windows (#1800)
1 parent f82ff8f commit 3840648

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

packages/extester/src/util/codeUtil.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,19 @@ export class CodeUtil {
413413
if (platform === 'linux') {
414414
platform += arch === 'ia32' ? '-ia32' : `-${arch}`;
415415
} else if (platform === 'win32') {
416-
platform += arch === 'x64' ? `-${arch}` : '';
416+
switch (arch) {
417+
case 'arm64': {
418+
platform += '-arm64';
419+
break;
420+
}
421+
case 'x64': {
422+
platform += '-x64';
423+
break;
424+
}
425+
default: {
426+
throw new Error(`Unknown Platform: ${arch}`);
427+
}
428+
}
417429
platform += '-archive';
418430
this.cliEnv = `set ${this.cliEnv} &&`;
419431
} else if (platform === 'darwin') {

0 commit comments

Comments
 (0)