mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-20 11:35:48 +00:00
fix: revert back to cargo install since cargo build cannot take path
This commit is contained in:
parent
fd26cec29e
commit
f94734f3be
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
}),
|
||||
|
|
Loading…
Add table
Reference in a new issue