diff options
author | pm100 <paulmoore100@hotmail.com> | 2020-10-25 17:18:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 01:18:04 +0100 |
commit | a4d741723cbb305a5972c98ab3f13913507223d2 (patch) | |
tree | 45ee74197592aa06512b830ecb2bb99b1ca5ff93 | |
parent | 0f5b8a090975a0c25594741457dae021140e2232 (diff) |
windows msi installer using wix (#360)
-rw-r--r-- | .github/workflows/cd.yml | 2 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 4 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 3 |
4 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d30f32dd..ce4db2b9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -70,6 +70,8 @@ jobs: files: | ./release/*.tar.gz ./release/*.zip + ./release/*.msi + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89e47930..e121a1c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,10 @@ jobs: - name: Build Release run: make build-release + - name: make-wix + if: matrix.os == 'windows-latest' + run: make release-win + build-linux-musl: runs-on: ubuntu-latest steps: @@ -1,5 +1,6 @@ /target /release +/wix .DS_Store /.idea/ flamegraph.svg @@ -19,6 +19,9 @@ release-mac: build-release release-win: build-release mkdir -p release tar -C ./target/release/ -czvf ./release/gitui-win.tar.gz ./gitui.exe + cargo install cargo-wix + cargo wix init + cargo wix --no-build --nocapture --output ./release/gitui.msi release-linux-musl: build-linux-musl-release strip target/x86_64-unknown-linux-musl/release/gitui |