Skip to content

Commit 5ba1fd9

Browse files
committed
ci(release): build Windows NSIS installer only, drop flaky MSI
WiX 3 light.exe fails to link the MSI reliably in CI. The NSIS setup .exe is the downloadable installer users need and is Tauri's recommended Windows target, so build with --bundles nsis and skip MSI entirely.
1 parent 0e51d31 commit 5ba1fd9

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ jobs:
297297
# Job 3: Windows GUI installer (.exe setup + .msi)
298298
# ────────────────────────────────────────────────────────────────────────────
299299
# Builds the full Tauri app on a Windows runner and produces a downloadable
300-
# NSIS setup .exe and an MSI, both attached to the release. Mirrors the macOS
301-
# build's sidecar-staging step, but for the x86_64-pc-windows-msvc triple.
300+
# NSIS setup .exe attached to the release. Mirrors the macOS build's
301+
# sidecar-staging step, but for the x86_64-pc-windows-msvc triple.
302302
# ════════════════════════════════════════════════════════════════════════════
303303
build-gui-windows:
304304
name: Build GUI installer (Windows x86_64)
@@ -352,31 +352,25 @@ jobs:
352352
Write-Host "sidecar ready: binaries/$bin-$env:TRIPLE_WIN.exe"
353353
}
354354
355-
# targets:"all" in tauri.conf.json → NSIS setup .exe + MSI. Tauri fetches
356-
# the NSIS and WiX toolchains automatically on first build.
357-
- name: Build Tauri app (NSIS + MSI)
355+
# NSIS only: it produces the downloadable setup .exe and is Tauri's
356+
# recommended Windows installer. MSI is skipped — WiX 3 (light.exe) fails
357+
# to link reliably in CI and adds no value over the NSIS installer.
358+
- name: Build Tauri app (NSIS installer)
358359
working-directory: lumenator
359-
run: pnpm tauri build
360+
run: pnpm tauri build --bundles nsis
360361
env:
361362
CI: true
362363

363-
- name: Upload installers to release
364+
- name: Upload installer to release
364365
shell: pwsh
365366
env:
366367
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
367368
run: |
368369
$tag = "${{ needs.resolve.outputs.tag }}"
369370
$setup = Get-ChildItem -Path target/release/bundle/nsis -Filter *-setup.exe -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
370-
$msi = Get-ChildItem -Path target/release/bundle/msi -Filter *.msi -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
371371
if (-not $setup) { Write-Error "NSIS setup .exe not found under target/release/bundle/nsis"; exit 1 }
372372
Write-Host "Uploading $($setup.Name)"
373373
gh release upload "$tag" "$($setup.FullName)" --clobber
374-
if ($msi) {
375-
Write-Host "Uploading $($msi.Name)"
376-
gh release upload "$tag" "$($msi.FullName)" --clobber
377-
} else {
378-
Write-Host "MSI not produced (skipping)"
379-
}
380374
381375
# ════════════════════════════════════════════════════════════════════════════
382376
# Job 4: Update the Homebrew tap (tag push only, after macOS build succeeds)

0 commit comments

Comments
 (0)