mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
adopt to latest vscode-perf (#173127)
This commit is contained in:
committed by
GitHub
parent
55d4e4844f
commit
8922a506d6
@@ -22,9 +22,18 @@ async function main() {
|
||||
let buildArgIndex = args.indexOf('--build');
|
||||
buildArgIndex = buildArgIndex === -1 ? args.indexOf('-b') : buildArgIndex;
|
||||
if (buildArgIndex === -1) {
|
||||
let runtimeArgIndex = args.indexOf('--runtime');
|
||||
runtimeArgIndex = runtimeArgIndex === -1 ? args.indexOf('-r') : runtimeArgIndex;
|
||||
if (runtimeArgIndex !== -1 && args[runtimeArgIndex + 1] !== 'desktop') {
|
||||
console.error('Please provide the --build argument. It is an executable file for desktop or a URL for web');
|
||||
process.exit(1);
|
||||
}
|
||||
build = getLocalCLIPath();
|
||||
} else {
|
||||
build = getExePath(args[buildArgIndex + 1]);
|
||||
build = args[buildArgIndex + 1];
|
||||
if (build !== 'insider' && build !== 'stable' && build !== 'exploration') {
|
||||
build = getExePath(args[buildArgIndex + 1]);
|
||||
}
|
||||
args.splice(buildArgIndex + 1, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user