mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 14:49:04 +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",
|
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
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue