diff --git a/src/builders/build_stardust.rs b/src/builders/build_stardust.rs index b14e510..4f1f743 100644 --- a/src/builders/build_stardust.rs +++ b/src/builders/build_stardust.rs @@ -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 }),