Skip to content

Commit f59f52d

Browse files
committed
[desktop] support new archs in backward compatible fashion
1 parent fbfeef9 commit f59f52d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

extensions/gitpod-remote/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "%displayName%",
44
"description": "%description%",
55
"publisher": "gitpod",
6-
"version": "0.0.26",
6+
"version": "0.0.27",
77
"license": "MIT",
88
"preview": true,
99
"icon": "resources/gitpod.png",

extensions/gitpod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "%displayName%",
44
"description": "%description%",
55
"publisher": "gitpod",
6-
"version": "0.0.26",
6+
"version": "0.0.27",
77
"license": "MIT",
88
"preview": true,
99
"icon": "resources/gitpod.png",

extensions/gitpod/src/extension.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +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';
132+
let arch = '';
133133
if (process.arch === 'arm64') {
134-
arch = 'arm64';
134+
arch = '-arm64';
135135
} if (process.arch === 'x32' && process.platform === 'win32') {
136-
arch = '386';
136+
arch = '-386';
137137
}
138138
if (process.platform === 'win32') {
139139
downloadUri = downloadUri.with({
140-
path: `/static/bin/gitpod-local-companion-windows-${arch}.exe`
140+
path: `/static/bin/gitpod-local-companion-windows${arch}.exe`
141141
});
142142
} else if (process.platform === 'darwin') {
143143
downloadUri = downloadUri.with({
144-
path: `/static/bin/gitpod-local-companion-darwin-${arch}`
144+
path: `/static/bin/gitpod-local-companion-darwin${arch}`
145145
});
146146
} else {
147147
downloadUri = downloadUri.with({
148-
path: `/static/bin/gitpod-local-companion-linux-${arch}`
148+
path: `/static/bin/gitpod-local-companion-linux${arch}`
149149
});
150150
}
151151
log(`fetching the local app from ${downloadUri.toString()}`);

0 commit comments

Comments
 (0)