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:
- name: Checkout code 👋
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Wix Toolset 🛠
run: dotnet tool install --global wix
- name: Build installer 📦
id: build
env:

View file

@ -20,9 +20,14 @@ New-Item -Path "." -Name "out" -ItemType Directory -ErrorAction SilentlyContinue
if ($Download) {
# 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"
$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)"
}