mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -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:
|
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:
|
||||||
|
|
|
@ -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)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue