Skip to content

Commit

Permalink
Update build process to install Windows SDK and use Windows Kit path …
Browse files Browse the repository at this point in the history
…with makeappx.exe
  • Loading branch information
Thavarshan committed Aug 31, 2024
1 parent 62f5e34 commit ad43973
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ jobs:
with:
node-version: '20'

- name: Install Windows SDK with makeappx.exe
- name: Install Windows SDK
run: |
choco install visualstudio-installer -y
vs_installer.exe install --installPath "C:\BuildTools" --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --quiet --wait
shell: cmd

- name: Get Windows Kit Path and Verify makeappx.exe
run: |
choco install windows-sdk-10 -y
$windowsKitPath = (Get-ItemProperty 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots').'KitsRoot10'
$makeappxPath = Join-Path -Path $windowsKitPath -ChildPath 'bin\x64\makeappx.exe'
if (Test-Path $makeappxPath) {
Expand All @@ -34,8 +39,7 @@ jobs:
shell: pwsh

- name: Print Windows Kit Path
run: |
echo "Windows Kit Path: $windowsKitPath"
run: echo "Windows Kit Path: $env:WINDOWS_KIT_PATH"
shell: pwsh

- name: Install dependencies
Expand Down

0 comments on commit ad43973

Please sign in to comment.