File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 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) {
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 ( ) } ` ) ;
You can’t perform that action at this time.
0 commit comments