Fix: Github CI fix again (windows msi with wix) && autonomous msi workflow
All checks were successful
Deploy Website / deploy (push) Has been skipped

This commit is contained in:
2026-03-01 22:09:59 +01:00
parent e9f5d8bb6d
commit cfd7d31d3d
3 changed files with 34 additions and 2 deletions

32
.github/workflows/msi.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: MSI
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Build CLI
run: cargo build --release
- name: Build Desktop
run: cargo build --release --features desktop --bin cagire-desktop
- name: Install cargo-wix
run: cargo install cargo-wix
- name: Build MSI
run: cargo wix --no-build --nocapture --package cagire -C -p -C x64
- name: Upload MSI
uses: actions/upload-artifact@v4
with:
name: cagire-msi
path: target/wix/*.msi

View File

@@ -149,7 +149,7 @@ jobs:
- name: Build MSI installer (Windows)
if: runner.os == 'Windows'
run: cargo wix --no-build --nocapture -C -p -C x64
run: cargo wix --no-build --nocapture --package cagire -C -p -C x64
- name: Upload MSI installer (Windows)
if: runner.os == 'Windows'

View File

@@ -330,7 +330,7 @@ copy_artifacts() {
# MSI installer for Windows targets
if [[ "$os" == "windows" ]] && command -v cargo-wix &>/dev/null; then
echo " Building MSI installer..."
cargo wix --no-build --nocapture -C -p -C x64
cargo wix --no-build --nocapture --package cagire -C -p -C x64
cp target/wix/*.msi "$OUT/" 2>/dev/null && echo " MSI -> $OUT/" || true
fi