fix: revert back to cargo install since cargo build cannot take path

This commit is contained in:
Gabriele Musco 2023-12-10 09:32:38 +00:00
commit f94734f3be

View file

@ -38,23 +38,26 @@ pub fn get_build_stardust_jobs(
dir: get_data_dir() + "/stardust/stardust-xr-server", dir: get_data_dir() + "/stardust/stardust-xr-server",
default_branch: server_spec.branch, default_branch: server_spec.branch,
}; };
let prefix = get_data_dir() + "/stardust/prefix";
jobs.extend(server_git.get_pre_build_jobs(update)); jobs.extend(server_git.get_pre_build_jobs(update));
jobs.push_back(WorkerJob::new_cmd( jobs.push_back(WorkerJob::new_cmd(
None, None,
"cargo".into(), "cargo".into(),
Some({ Some({
let mut args = vec![ let mut args = vec![
"-C".into(), "install".into(),
"--path".into(),
server_git.dir, server_git.dir,
"build".into(), "--root".into(),
prefix,
"--no-default-features".into(), "--no-default-features".into(),
]; ];
if server_spec.wayland_support { if server_spec.wayland_support {
args.push("--features".into()); args.push("--features".into());
args.push("wayland".into()); args.push("wayland".into());
} }
if !server_spec.debug { if server_spec.debug {
args.push("--release".into()); args.push("--debug".into());
} }
args args
}), }),