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
parent fd26cec29e
commit f94734f3be

View file

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