Fix: Github CI fix again (windows msi with wix) && autonomous msi workflow
All checks were successful
Deploy Website / deploy (push) Has been skipped
All checks were successful
Deploy Website / deploy (push) Has been skipped
This commit is contained in:
32
.github/workflows/msi.yml
vendored
Normal file
32
.github/workflows/msi.yml
vendored
Normal 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
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user