fix(msi): install wix in Action

This commit is contained in:
Jan De Dobbeleer 2024-11-24 08:56:02 +01:00 committed by Jan De Dobbeleer
parent 64f811c6ee
commit fa93af83cd
2 changed files with 9 additions and 2 deletions

View file

@ -16,6 +16,8 @@ jobs:
steps: steps:
- name: Checkout code 👋 - name: Checkout code 👋
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Wix Toolset 🛠
run: dotnet tool install --global wix
- name: Build installer 📦 - name: Build installer 📦
id: build id: build
env: env:

View file

@ -20,9 +20,14 @@ New-Item -Path "." -Name "out" -ItemType Directory -ErrorAction SilentlyContinue
if ($Download) { if ($Download) {
# download the executable # download the executable
$file = "posh-windows-$Architecture.exe" switch ($Architecture) {
'x86' { $file = "posh-windows-386.exe" }
'x64' { $file = "posh-windows-amd64.exe" }
Default { $file = "posh-windows-$Architecture.exe" }
}
$name = "oh-my-posh.exe" $name = "oh-my-posh.exe"
$url = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/$($file)" $url = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/$file"
Invoke-WebRequest $url -Out "./dist/$($name)" Invoke-WebRequest $url -Out "./dist/$($name)"
} }