Skip to content

Commit

Permalink
Update build process to install Visual Studio Build Tools with Window…
Browse files Browse the repository at this point in the history
…s SDK
  • Loading branch information
Thavarshan committed Aug 31, 2024
1 parent 387caa7 commit f1b9cf5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ jobs:
with:
node-version: '20'

- name: Install Windows SDK
- name: Install Visual Studio Build Tools with Windows SDK
run: |
choco install visualstudio-installer -y
vs_installer.exe install --installPath "C:\BuildTools" --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --quiet --wait
curl -LO https://aka.ms/vs/17/release/vs_buildtools.exe
.\vs_buildtools.exe --add Microsoft.VisualStudio.Component.Windows10SDK.19041 --quiet --wait --norestart
shell: cmd

- name: Get Windows Kit Path and Verify makeappx.exe
run: |
$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) {
echo "Windows Kit Path: $windowsKitPath"
echo "makeappx.exe found at $makeappxPath"
echo "WINDOWS_KIT_PATH=${windowsKitPath}bin\x64" >> $GITHUB_ENV
Write-Host "Windows Kit Path: $windowsKitPath"
Write-Host "makeappx.exe found at $makeappxPath"
echo "WINDOWS_KIT_PATH=${windowsKitPath}bin\x64" >> $env:GITHUB_ENV
} else {
Write-Error "makeappx.exe not found in Windows Kit Path."
exit 1
Expand Down

0 comments on commit f1b9cf5

Please sign in to comment.