Skip to content

Commit

Permalink
Update build process to verify makeappx.exe in Windows Kit path
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Aug 31, 2024
1 parent 9913837 commit c9ebd21
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,18 @@ jobs:
run: choco install windows-sdk-10-version-2004-all -y
shell: pwsh

- name: Get Windows Kit Path
- name: Get Windows Kit Path and Verify makeappx.exe
run: |
$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
$makeappxPath = Join-Path -Path $windowsKitPath -ChildPath 'bin\x64\makeappx.exe'
if (Test-Path $makeappxPath) {
echo "Windows Kit Path: $windowsKitPath"
echo "makeappx.exe found at $makeappxPath"
echo "WINDOWS_KIT_PATH=${windowsKitPath}bin\x64" >> $GITHUB_ENV
} else {
Write-Error "makeappx.exe not found in Windows Kit Path."
exit 1
}
shell: pwsh


0 comments on commit c9ebd21

Please sign in to comment.