mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-21 02:55:37 -08:00
fix(msi): install wix in Action
This commit is contained in:
parent
64f811c6ee
commit
fa93af83cd
2
.github/workflows/msi.yml
vendored
2
.github/workflows/msi.yml
vendored
|
@ -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:
|
||||
|
|
|
@ -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)"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue