fix(windows): use NSIS installer instead of WiX MSI on CI
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
11
.github/workflows/build-app.yml
vendored
11
.github/workflows/build-app.yml
vendored
@@ -50,14 +50,21 @@ jobs:
|
||||
|
||||
- name: Build Windows app
|
||||
working-directory: template
|
||||
run: npm run tauri build
|
||||
run: npm run tauri build -- --bundles nsis
|
||||
|
||||
- name: Collect Windows artifacts
|
||||
shell: pwsh
|
||||
run: |
|
||||
New-Item -ItemType Directory -Force -Path artifacts/windows | Out-Null
|
||||
Get-ChildItem -Path "template/src-tauri/target/release/bundle" -Recurse -Include *.exe,*.msi |
|
||||
$bundleRoot = "template/src-tauri/target/release/bundle"
|
||||
if (Test-Path $bundleRoot) {
|
||||
Get-ChildItem -Path $bundleRoot -Recurse -Include *setup.exe,*.exe,*.msi -ErrorAction SilentlyContinue |
|
||||
Copy-Item -Destination artifacts/windows -Force
|
||||
}
|
||||
Get-ChildItem -Path "template/src-tauri/target/release" -Filter "*.exe" -ErrorAction SilentlyContinue |
|
||||
Where-Object { $_.Name -notmatch "wix|candle|light" } |
|
||||
Copy-Item -Destination artifacts/windows -Force
|
||||
Get-ChildItem artifacts/windows
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user