diff options
Diffstat (limited to 'export/src')
| -rw-r--r-- | export/src/bin/export_project.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/export/src/bin/export_project.rs b/export/src/bin/export_project.rs index b83e54b..91bfc87 100644 --- a/export/src/bin/export_project.rs +++ b/export/src/bin/export_project.rs @@ -15,6 +15,8 @@ pub struct Config { pub struct Release { pub root: HashMap<String, ReleaseItem>, pub deps: HashMap<String, ReleaseItem>, + pub deploy_root: HashMap<String, ReleaseItem>, + pub deploy_deps: HashMap<String, ReleaseItem> } #[derive(Debug, Deserialize)] @@ -61,6 +63,20 @@ pub fn main() { copy_files(&raw_path, &target_path, data.1.files); } + for data in config.release.deploy_root { + println!("Deploy \"{}\"", data.0); + let raw_path = root.join(data.1.raw); + let target_path = root.join(data.1.target); + copy_files(&raw_path, &target_path, data.1.files); + } + + for data in config.release.deploy_deps { + println!("Deploy \"{}\"", data.0); + let raw_path = target_dir.join(data.1.raw); + let target_path = root.join(data.1.target); + copy_files(&raw_path, &target_path, data.1.files); + } + if let Ok(()) = open_in_explorer(export_version_dir) { println!("DONE"); } |
