From 4f852a004f74d4135cb5eaeb27000cc88b7399e5 Mon Sep 17 00:00:00 2001 From: bigfoodK <38313680+bigfoodK@users.noreply.github.com> Date: Mon, 1 Jul 2024 06:16:46 +0900 Subject: [PATCH] Use store onecoreuap headers (#129) --- src/lib.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 8527d5e..4e66868 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -577,6 +577,26 @@ fn get_sdk( target_arch: None, }); + // https://github.com/Jake-Shadle/xwin/issues/128 + let header_payload = sdk.payloads.iter().find(|payload| { + payload + .file_name + .ends_with("Windows SDK for Windows Store Apps Headers OnecoreUap-x86_en-us.msi") + }); + + if let Some(header_payload) = header_payload { + pruned.push(Payload { + filename: format!("{}_store_headers_onecoreuap.msi", sdk.id).into(), + sha256: header_payload.sha256.clone(), + url: header_payload.url.clone(), + size: header_payload.size, + install_size: None, + kind: PayloadKind::SdkHeaders, + variant: Some(Variant::Store), + target_arch: None, + }); + } + for arch in Arch::iter(arches) { if arch == Arch::X86 { continue;