mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-11-15 07:07:07 +00:00
fix windows build continued
This commit is contained in:
1 parent
17b5c1d567
commit
77c542d9aa
11 files changed
+957
-907
No files matched your search
@@ -1,3 +1,20 @@
|
||||
fn main() {
|
||||
// On Windows, the dialogs need Common Controls v6, which a binary only gets with a manifest that
|
||||
// asks for it: tauri-build gives one to the app, but not to the test binaries, which would stop
|
||||
// with STATUS_ENTRYPOINT_NOT_FOUND before running any test. This gives them the same manifest
|
||||
// (`-tests` only reaches the binaries of `tests`, hence the tests are there).
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows")
|
||||
&& std::env::var("CARGO_CFG_TARGET_ENV").as_deref() == Ok("msvc")
|
||||
{
|
||||
let manifest = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("tests")
|
||||
.join("windows-test.manifest");
|
||||
println!("cargo:rerun-if-changed={}", manifest.display());
|
||||
println!("cargo:rustc-link-arg-tests=/MANIFEST:EMBED");
|
||||
println!(
|
||||
"cargo:rustc-link-arg-tests=/MANIFESTINPUT:{}",
|
||||
manifest.display()
|
||||
);
|
||||
}
|
||||
tauri_build::build()
|
||||
}
|
||||
Reference in new issue
Block a user