diff --git a/package-lock.json b/package-lock.json index 6789c14..f3f425b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vscode/vscode-bisect", - "version": "1.0.15", + "version": "1.0.16", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vscode/vscode-bisect", - "version": "1.0.15", + "version": "1.0.16", "license": "MIT", "dependencies": { "@vscode/vscode-perf": "^0.0.24", diff --git a/package.json b/package.json index fba69f4..4b3d8f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vscode/vscode-bisect", - "version": "1.0.15", + "version": "1.0.16", "description": "Bisect released VS Code builds to find bugs or performance issues similar to what git bisect supports.", "repository": { "type": "git", diff --git a/src/builds.ts b/src/builds.ts index 6f27ffb..e5e6db3 100644 --- a/src/builds.ts +++ b/src/builds.ts @@ -401,8 +401,13 @@ class Builds { if (flavor !== Flavor.Cli) { switch (platform) { case Platform.MacOSX64: - case Platform.MacOSArm: - return join(buildPath, buildName, 'Contents', 'MacOS', 'Electron'); + case Platform.MacOSArm: { + const oldLocation = join(buildPath, buildName, 'Contents', 'MacOS', 'Electron'); + if (await exists(oldLocation)) { + return oldLocation; // only valid until 1.109 + } + return join(buildPath, buildName, 'Contents', 'MacOS', quality === 'insider' ? 'Code - Insiders' : 'Code'); + } case Platform.LinuxX64: case Platform.LinuxArm: return join(buildPath, buildName, quality === 'insider' ? 'code-insiders' : 'code')