From 5c30c4064f490a93b40413f3a17dbcbc4ea36bab Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Wed, 3 Jul 2024 13:54:40 +0100 Subject: [PATCH] Build Windows installer using cargo-wix. --- .github/workflows/rust.yml | 10 ++ wix/main.wxs | 275 +++++++++++++++++++++++++++++++++++++ 2 files changed, 285 insertions(+) create mode 100644 wix/main.wxs diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6804193b..6ad8beca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -67,6 +67,12 @@ jobs: run: brew install gtk4 pkg-config if: matrix.os == 'macos-latest' + - name: Install cargo-wix (Windows) + uses: taiki-e/cache-cargo-install-action@v2 + with: + tool: cargo-wix + if: matrix.os == 'windows-latest' + - name: Install dependencies (Windows) uses: lukka/run-vcpkg@v11 with: @@ -98,6 +104,10 @@ jobs: with: run: cargo test + - name: Build installer (Windows) + run: cargo wix --no-build --nocapture -v + if: matrix.os == 'windows-latest' + - uses: actions/upload-artifact@v2 with: name: Packetry ${{ matrix.os }} diff --git a/wix/main.wxs b/wix/main.wxs new file mode 100644 index 00000000..10e6585d --- /dev/null +++ b/wix/main.wxs @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + 1 + + + + + + + + + + + + + + + + + +