diff options
| author | Weicao Mao <1992414357@qq.com> | 2025-06-14 05:23:34 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-14 05:23:34 +0800 |
| commit | 3c27fb3e898595d53c5c74a0fd5d4e8092f07a51 (patch) | |
| tree | 641f1400bc2bef9300211209193fae6012b76f43 /export | |
| parent | f0929789d5e3957082c41534eecd2ebf5dd38163 (diff) | |
| parent | fe723c6ced041e1d07afec4f5a6649fc9a655893 (diff) | |
Merge pull request #2 from CatilGrass/c_bindings
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"); } |
