blob: 0ab379b8856aa2ca32e5c225f4af72b99759d649 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use std::fs::copy;
use std::path::Path;
fn main() {
// The working directory for `cargo test` is in the deps folder, not the debug/release root
if cfg!(test) && Path::new("target").exists() {
#[cfg(debug_assertions)]
copy("../assets/windows/x86_64/winpty-agent.exe", "target/debug/deps/winpty-agent.exe")
.unwrap();
#[cfg(not(debug_assertions))]
copy("../assets/windows/x86_64/winpty-agent.exe", "target/release/deps/winpty-agent.exe")
.unwrap();
}
}
|