Skip to content

Commit

Permalink
Update Windows SDK version to 10.0.2004
Browse files Browse the repository at this point in the history
  • Loading branch information
Thavarshan committed Aug 30, 2024
1 parent 281ef08 commit b7338f3
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Electron App
name: Build Windows

on:
push:
Expand All @@ -22,7 +22,23 @@ jobs:
run: npm install

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

- name: Verify makeappx.exe exists
run: |
if (Test-Path "C:\Program Files (x86)\Windows Kits\10\bin\x64\makeappx.exe") {
Write-Host "makeappx.exe found."
} else {
Write-Host "makeappx.exe not found. Installation might have failed."
exit 1
}
shell: pwsh

- name: Add SDK to PATH
run: |
$env:Path += ";C:\Program Files (x86)\Windows Kits\10\bin\x64"
Write-Host "SDK path added to environment."
shell: pwsh

- name: Build Electron app
Expand Down

0 comments on commit b7338f3

Please sign in to comment.