Skip to content

Commit fbfeef9

Browse files
iQQBotakosyakov
authored andcommitted
add more arch support local-app
1 parent 41dd4f7 commit fbfeef9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

extensions/gitpod/src/extension.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,23 @@ export async function activate(context: vscode.ExtensionContext) {
129129

130130
function downloadLocalApp(gitpodHost: string): Promise<Response> {
131131
let downloadUri = vscode.Uri.parse(gitpodHost);
132+
let arch = 'amd64';
133+
if (process.arch === 'arm64') {
134+
arch = 'arm64';
135+
} if (process.arch === 'x32' && process.platform === 'win32') {
136+
arch = '386';
137+
}
132138
if (process.platform === 'win32') {
133139
downloadUri = downloadUri.with({
134-
path: '/static/bin/gitpod-local-companion-windows.exe'
140+
path: `/static/bin/gitpod-local-companion-windows-${arch}.exe`
135141
});
136142
} else if (process.platform === 'darwin') {
137143
downloadUri = downloadUri.with({
138-
path: '/static/bin/gitpod-local-companion-darwin'
144+
path: `/static/bin/gitpod-local-companion-darwin-${arch}`
139145
});
140146
} else {
141147
downloadUri = downloadUri.with({
142-
path: '/static/bin/gitpod-local-companion-linux'
148+
path: `/static/bin/gitpod-local-companion-linux-${arch}`
143149
});
144150
}
145151
log(`fetching the local app from ${downloadUri.toString()}`);

0 commit comments

Comments
 (0)