diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2025-06-14 05:22:25 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2025-06-14 05:22:25 +0800 |
| commit | fe723c6ced041e1d07afec4f5a6649fc9a655893 (patch) | |
| tree | 80f282c6cfb11ddcb65939c085665bca1a1703ea /export | |
| parent | f657a9c2056d4e5692ddbc19217b654277300c75 (diff) | |
Add CBinding Example
Diffstat (limited to 'export')
| -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"); } |
