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 5ee1481 commit 9e55956Copy full SHA for 9e55956
src/main/osinstaller/CxInstaller.ts
@@ -52,15 +52,14 @@ export class CxInstaller {
52
if (this.platform !== 'linux') {
53
return 'x64';
54
}
55
-
56
- switch (process.arch) {
57
- case 'arm64':
58
- return 'arm64';
59
- case 'arm':
60
- return 'armv6';
61
- default:
62
- return 'x64';
63
- }
+
+ const archMap: Record<string, string> = {
+ 'arm64': 'arm64',
+ 'arm': 'armv6'
+ };
+ // Default to 'x64' if the current architecture is not found in the map.
+ return archMap[process.arch] || 'x64';
64
65
66
public getExecutablePath(): string {
0 commit comments