Rename zed2 -> zed
Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
b594e59134
commit
7986ee18cd
237 changed files with 2971 additions and 18447 deletions
|
@ -4,7 +4,6 @@ const { spawn, execFileSync } = require("child_process");
|
|||
|
||||
const RESOLUTION_REGEX = /(\d+) x (\d+)/;
|
||||
const DIGIT_FLAG_REGEX = /^--?(\d+)$/;
|
||||
const ZED_2_MODE = "--zed2";
|
||||
const RELEASE_MODE = "--release";
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
|
@ -16,7 +15,6 @@ if (digitMatch) {
|
|||
instanceCount = parseInt(digitMatch[1]);
|
||||
args.shift();
|
||||
}
|
||||
const isZed2 = args.some((arg) => arg === ZED_2_MODE);
|
||||
const isReleaseMode = args.some((arg) => arg === RELEASE_MODE);
|
||||
if (instanceCount > 4) {
|
||||
throw new Error("Cannot spawn more than 4 instances");
|
||||
|
@ -71,17 +69,11 @@ const buildArgs = (() => {
|
|||
buildArgs.push("--release");
|
||||
}
|
||||
|
||||
if (isZed2) {
|
||||
buildArgs.push("-p", "zed2");
|
||||
}
|
||||
|
||||
return buildArgs;
|
||||
})();
|
||||
const zedBinary = (() => {
|
||||
const target = isReleaseMode ? "release" : "debug";
|
||||
const binary = isZed2 ? "Zed2" : "Zed";
|
||||
|
||||
return `target/${target}/${binary}`;
|
||||
return `target/${target}/Zed`;
|
||||
})();
|
||||
|
||||
execFileSync("cargo", buildArgs, { stdio: "inherit" });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue