fix: atombuild switch is not effect

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-09-14 12:37:58 +00:00
parent 974fd52ae5
commit 18fe38db50
+2 -7
View File
@@ -115,7 +115,7 @@ async fn handle_build(
});
}
let mut cmd = std::process::Command::new("./x");
let mut cmd = Command::new("./x");
if req.atombuild {
cmd.arg("--atombuild");
}
@@ -129,12 +129,7 @@ async fn handle_build(
let log_url = format!("{}/api/builds/{}/log", state.config.master_url, req.build_id);
let client = reqwest::Client::new();
let mut child = match Command::new("./x")
.arg("--atombuild")
.arg("--target").arg(&req.target)
.arg("build").arg(&req.package_name)
.current_dir(&ports_path)
.env("PYTHONUNBUFFERED", "1")
let mut child = match cmd
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::piped())
.spawn()