diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 77eb005..83efe2c 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -18,28 +18,13 @@ jobs: with: node-version: '20' + - name: Setup Windows SDK + uses: GuillaumeFalourd/setup-windows10-sdk-action@v2 + - name: Install dependencies run: npm install - - name: Install Windows SDK - run: | - choco install windows-sdk-10-version-2004-all -y - $env:Path += ";C:\Program Files (x86)\Windows Kits\10\bin\x64" - if (-Not (Test-Path "C:\Program Files (x86)\Windows Kits\10\bin\x64\makeappx.exe")) { - Write-Host "makeappx.exe not found. Installation might have failed." - exit 1 - } else { - Write-Host "makeappx.exe found." - } - 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 + - name: Build app run: npm run make continue-on-error: false