feat(wip): stardust builder

This commit is contained in:
Gabriele Musco 2023-12-06 19:53:58 +00:00
parent ece8da4210
commit 6d48527d63
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,29 @@
use std::collections::VecDeque;
use crate::{ui::job_worker::job::WorkerJob, build_tools::git::Git, paths::{get_cache_dir, get_data_dir}};
pub struct StardustServerSpec {
repo: String,
branch: String,
}
pub struct StardustClientSpec {
}
pub fn get_build_stardust_jobs(server_spec: StardustServerSpec, client_specs: [StardustClientSpec]) -> VecDeque<WorkerJob> {
let mut jobs = VecDeque::<WorkerJob>::new();
let git = Git {
repo: server_spec.repo,
dir: format!("{}/stardust/server", get_data_dir()),
default_branch: "main".into(),
};
jobs.extend(git.get_pre_build_jobs(true));
// jobs.push(WorkerJob::new_cmd(env, cmd, args));
jobs
}
// to launch
// stardust-server -e "some script"

View file

@ -5,3 +5,4 @@ pub mod build_monado;
pub mod build_opencomposite;
pub mod build_openhmd;
pub mod build_wivrn;
pub mod build_stardust;