Skip to content

Commit 80b493f

Browse files
authored
Dynamically find MSIX tool paths in workflow
Updated the workflow to dynamically find MSIX tool paths instead of hardcoding the SDK version.
1 parent 3800743 commit 80b493f

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build-windows.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,15 @@ jobs:
6565
- name: Set MSIX Tool Paths
6666
shell: powershell
6767
run: |
68-
$sdkPath = "C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64"
69-
echo "MAKEAPPX_PATH=$sdkPath\MakeAppx.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
70-
echo "SIGNTOOL_PATH=$sdkPath\signtool.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
68+
# DYNAMIC FIX: Find tools in PATH instead of hardcoding SDK version
69+
$makeappx = (Get-Command MakeAppx.exe).Source
70+
$signtool = (Get-Command signtool.exe).Source
71+
72+
echo "Found MakeAppx at: $makeappx"
73+
echo "Found SignTool at: $signtool"
74+
75+
echo "MAKEAPPX_PATH=$makeappx" | Out-File -FilePath $env:GITHUB_ENV -Append
76+
echo "SIGNTOOL_PATH=$signtool" | Out-File -FilePath $env:GITHUB_ENV -Append
7177
7278
- name: Run deployment script
7379
run: |
@@ -144,3 +150,4 @@ jobs:
144150
with:
145151
name: temporary-testing-certificate
146152
path: extras/deploy_windows/deploy/test_certificate.cer
153+

0 commit comments

Comments
 (0)