1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 use std::path::PathBuf;
10 let target = env::var("TARGET").unwrap();
11 let out_dir = env::var_os("OUT_DIR").unwrap();
12 let out_dir = PathBuf::from(out_dir);
14 println!("cargo:rerun-if-changed=res/wrench.exe.manifest");
15 if target.contains("windows") {
16 let src = PathBuf::from("res/wrench.exe.manifest");
25 dst.push("wrench.exe.manifest");
26 fs::copy(&src, &dst).unwrap();