fix(ci): embed manifest in Windows integration tests

- Embed Common Controls v6 in integration-test binaries using Tauri's mock runtime.
- Keep the packaged app manifest owned by tauri-build.
- Refs #44
This commit is contained in:
NimBold
2026-10-13 13:45:25 +03:30
parent 061c9c45ec
commit eeb6127617
2 changed files with 30 additions and 1 deletions
+16 -1
View File
@@ -1,3 +1,18 @@
fn main() {
tauri_build::build()
tauri_build::build();
#[cfg(target_os = "windows")]
embed_manifest_for_integration_tests();
}
#[cfg(target_os = "windows")]
fn embed_manifest_for_integration_tests() {
let manifest = std::path::Path::new(&std::env::var("CARGO_MANIFEST_DIR").unwrap())
.join("tests/comctl-v6.xml");
println!("cargo:rerun-if-changed={}", manifest.display());
println!("cargo:rustc-link-arg-tests=/MANIFEST:EMBED");
println!(
"cargo:rustc-link-arg-tests=/MANIFESTINPUT:{}",
manifest.display()
);
}
+14
View File
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*" />
</dependentAssembly>
</dependency>
</assembly>