From fe723c6ced041e1d07afec4f5a6649fc9a655893 Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Sat, 14 Jun 2025 05:22:25 +0800 Subject: Add CBinding Example --- export/src/bin/export_project.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'export/src/bin/export_project.rs') 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, pub deps: HashMap, + pub deploy_root: HashMap, + pub deploy_deps: HashMap } #[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"); } -- cgit