From 9913837f3182f7adfe1ffd9886255360ae622a5e Mon Sep 17 00:00:00 2001 From: Jerome Thayananthajothy Date: Sat, 31 Aug 2024 03:08:02 +0100 Subject: [PATCH] Update build process to get Windows Kit path and install Windows SDK 10.0.2004 --- .github/workflows/build-windows.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index c95e621..9ca0ddb 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -22,14 +22,10 @@ jobs: run: choco install windows-sdk-10-version-2004-all -y shell: pwsh - - - name: Find Windows Kit Path + - name: Get Windows Kit Path run: | - $windowsKitPath = (Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\bin" -Recurse -File -Filter "makeappx.exe" | Select-Object -First 1).DirectoryName - echo "WINDOWS_KIT_PATH=$windowsKitPath" >> $GITHUB_ENV + $windowsKitPath = (Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots').'KitsRoot10' + echo "Windows Kit Path: ${windowsKitPath}bin\x64" + echo "WINDOWS_KIT_PATH=${windowsKitPath}bin\x64" >> $GITHUB_ENV shell: pwsh - - name: Print Windows Kit Path - run: | - echo "Windows Kit Path: $env:WINDOWS_KIT_PATH" - shell: pwsh