Skip to content

Commit

Permalink
Download appropriate binaries on MacOS (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
haberdashPI authored Feb 13, 2024
1 parent 2ffeada commit 85f5c9c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/util/codeUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class CodeUtil {
private extensionsFolder: string | undefined;

/**
* Create an instance of code handler
* Create an instance of code handler
* @param folder Path to folder where all the artifacts will be stored.
* @param extensionsFolder Path to use as extensions directory by VS Code
*/
Expand Down Expand Up @@ -89,7 +89,7 @@ export class CodeUtil {

/**
* Download and unpack VS Code for testing purposes
*
*
* @param version VS Code version to get, default latest
*/
async downloadVSCode(version: string = 'latest'): Promise<void> {
Expand Down Expand Up @@ -255,7 +255,7 @@ export class CodeUtil {
/**
* Finds the version of chromium used for given VS Code version.
* Works only for versions 1.30+, older versions need to be checked manually
*
*
* @param codeVersion version of VS Code, default latest
* @param quality release stream, default stable
*/
Expand Down Expand Up @@ -366,6 +366,8 @@ export class CodeUtil {
platform += arch === 'x64' ? `-${arch}` : '';
platform += '-archive';
this.cliEnv = `set ${this.cliEnv} &&`;
} else if (platform === 'darwin') {
platform += '-universal';
}

return platform;
Expand Down

0 comments on commit 85f5c9c

Please sign in to comment.