mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-04-21 03:54:49 +00:00
feat(wip): stardust builder
This commit is contained in:
parent
ece8da4210
commit
6d48527d63
2 changed files with 30 additions and 0 deletions
29
src/builders/build_stardust.rs
Normal file
29
src/builders/build_stardust.rs
Normal 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"
|
|
@ -5,3 +5,4 @@ pub mod build_monado;
|
|||
pub mod build_opencomposite;
|
||||
pub mod build_openhmd;
|
||||
pub mod build_wivrn;
|
||||
pub mod build_stardust;
|
||||
|
|
Loading…
Add table
Reference in a new issue