mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-11 13:51:01 -05:00
14 lines
518 B
Rust
14 lines
518 B
Rust
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("../extra/windows/x86_64/winpty-agent.exe", "target/debug/deps/winpty-agent.exe")
|
|
.unwrap();
|
|
#[cfg(not(debug_assertions))]
|
|
copy("../extra/windows/x86_64/winpty-agent.exe", "target/release/deps/winpty-agent.exe")
|
|
.unwrap();
|
|
}
|
|
}
|