diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 72c3666..e6345d4 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -3,7 +3,7 @@ name: Build Windows on: push: branches: - - release + - main jobs: build: @@ -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) { @@ -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 }}