File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -129,17 +129,23 @@ export async function activate(context: vscode.ExtensionContext) {
129
129
130
130
function downloadLocalApp ( gitpodHost : string ) : Promise < Response > {
131
131
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
+ }
132
138
if ( process . platform === 'win32' ) {
133
139
downloadUri = downloadUri . with ( {
134
- path : ' /static/bin/gitpod-local-companion-windows.exe'
140
+ path : ` /static/bin/gitpod-local-companion-windows- ${ arch } .exe`
135
141
} ) ;
136
142
} else if ( process . platform === 'darwin' ) {
137
143
downloadUri = downloadUri . with ( {
138
- path : ' /static/bin/gitpod-local-companion-darwin'
144
+ path : ` /static/bin/gitpod-local-companion-darwin- ${ arch } `
139
145
} ) ;
140
146
} else {
141
147
downloadUri = downloadUri . with ( {
142
- path : ' /static/bin/gitpod-local-companion-linux'
148
+ path : ` /static/bin/gitpod-local-companion-linux- ${ arch } `
143
149
} ) ;
144
150
}
145
151
log ( `fetching the local app from ${ downloadUri . toString ( ) } ` ) ;
You can’t perform that action at this time.
0 commit comments