Skip to content

Commit

Permalink
windows msi installer using wix (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
pm100 authored Oct 26, 2020
1 parent 0f5b8a0 commit a4d7417
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
files: |
./release/*.tar.gz
./release/*.zip
./release/*.msi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/target
/release
/wix
.DS_Store
/.idea/
flamegraph.svg
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4d7417

Please sign in to comment.