Skip to content

Commit e8dba50

Browse files
committed
add path to Github env
1 parent 423fc4e commit e8dba50

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,15 @@ jobs:
268268
run: choco install nsis -y
269269
shell: pwsh
270270

271-
- name: Refresh PATH (Chocolatey)
271+
- name: Add NSIS to PATH
272272
shell: pwsh
273273
run: |
274-
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
275-
refreshenv
274+
$dirs = @(
275+
"${env:ProgramFiles(x86)}\NSIS",
276+
"${env:ProgramFiles}\NSIS"
277+
) | Where-Object { $_ -and (Test-Path $_) }
278+
if (-not $dirs) { throw "NSIS not found under Program Files." }
279+
$dirs | ForEach-Object { $_ | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append }
276280
277281
- name: Generate installer
278282
run: |

0 commit comments

Comments
 (0)