windows msi installer using wix (#360)

This commit is contained in:
pm100 2020-10-25 17:18:04 -07:00 committed by GitHub
parent 0f5b8a0909
commit a4d741723c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,8 @@ jobs:
files: |
./release/*.tar.gz
./release/*.zip
./release/*.msi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -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
.gitignore vendored
View File

@ -1,5 +1,6 @@
/target
/release
/wix
.DS_Store
/.idea/
flamegraph.svg

View File

@ -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