Skip to content

Commit

Permalink
add WixSharp
Browse files Browse the repository at this point in the history
  • Loading branch information
Misieq01 committed Oct 17, 2024
1 parent e3e1729 commit 1b4501a
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,22 @@ jobs:
uses: microsoft/setup-msbuild@v2
if: startsWith(runner.os,'Windows')

- name: List wix versions (windows)
- name: Build Installer
shell: bash
env:
WIX_PATH_CANDLE: 'C:/Program Files (x86)/WiX Toolset v3.11/bin/candle.exe'
WIX_PATH_LIGHT: 'C:/Program Files (x86)/WiX Toolset v3.11/bin/light.exe'
run: |
mkdir wixout
"$WIX_PATH_CANDLE" Product.wxs -o wixout/ -ext WixUtilExtension -ext WixUIExtension
"$WIX_PATH_LIGHT" wixout/*.wixobj -o Installer.msi -ext WixUtilExtension -ext WixUIExtension
git_hash=$(git rev-parse --short "$GITHUB_SHA")
mv Installer.msi MyApplication-$(date +'%Y-%m-%d')-${git_hash}.msi
ls
- name: Install Wixsharp (windows)
run: dotnet ool install --global WixSharp.wix.bin --version 3.14.1 --allow-downgrade --create-manifest-if-needed
if: startsWith(runner.os,'Windows')
run: dotnet tool search wix --take 1 --detail --prerelease

- name: Install WiX (windows)
run: dotnet tool install --global wix --version 3.14.1 --allow-downgrade --create-manifest-if-needed
Expand Down

0 comments on commit 1b4501a

Please sign in to comment.