Skip to content

Commit 16d0338

Browse files
committed
fix: install nsis in windows release job
1 parent 5383c2b commit 16d0338

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,18 @@ jobs:
119119
if: runner.os == 'macOS'
120120
run: brew install create-dmg
121121

122+
- name: Install Windows packaging tools
123+
if: runner.os == 'Windows'
124+
shell: pwsh
125+
run: |
126+
choco install nsis --no-progress -y
127+
$nsisDir = "${env:ProgramFiles(x86)}\NSIS"
128+
if (-not (Test-Path "$nsisDir\\makensis.exe")) {
129+
throw "makensis not found at $nsisDir"
130+
}
131+
$nsisDir | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
132+
& "$nsisDir\\makensis.exe" /VERSION
133+
122134
- name: Prepare macOS signing materials
123135
if: runner.os == 'macOS'
124136
env:

0 commit comments

Comments
 (0)