Skip to content

Commit

Permalink
Update build process to install Windows SDK 10.0.2004 and use Windows…
Browse files Browse the repository at this point in the history
… Kit path with makeappx.exe
  • Loading branch information
Thavarshan committed Aug 31, 2024
1 parent c9ebd21 commit e937bd6
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Windows
on:
push:
branches:
- release
- main

jobs:
build:
Expand All @@ -18,12 +18,9 @@ jobs:
with:
node-version: '20'

- name: Install Windows SDK
run: choco install windows-sdk-10-version-2004-all -y
shell: pwsh

- name: Get Windows Kit Path and Verify makeappx.exe
- name: Install Windows SDK with 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 @@ -36,4 +33,14 @@ jobs:
}
shell: pwsh

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

- name: Install dependencies
run: npm install

- name: Build app
run: npm run make
env:
WINDOWS_KIT_PATH: ${{ env.WINDOWS_KIT_PATH }}

0 comments on commit e937bd6

Please sign in to comment.