(order: &arg_parser::Order, output_folder: &Path)
| 57 | } |
| 58 | |
| 59 | pub fn get_source_binary_filename(order: &arg_parser::Order, output_folder: &Path) -> PathBuf { |
| 60 | let binary_name = format!("{}.{}", order.execution, order.format); |
| 61 | let candidates = [ |
| 62 | "target/x86_64-pc-windows-msvc/release", |
| 63 | "target/x86_64-pc-windows-gnu/release", |
| 64 | ]; |
| 65 | for dir in candidates { |
| 66 | let path = output_folder.join(dir).join(&binary_name); |
| 67 | if path.exists() { |
| 68 | return path; |
| 69 | } |
| 70 | } |
| 71 | output_folder.join(format!( |
| 72 | "target/x86_64-pc-windows-gnu/release/{}", |
| 73 | binary_name |
| 74 | )) |
| 75 | } |
| 76 | |
| 77 | pub fn process_output(order: &arg_parser::Order, output_folder_path: &Path) -> io::Result<()> { |
| 78 | let output_path = match &order.output { |
no outgoing calls