mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 03:24:04 -08:00
fix(msi): use script switches
This commit is contained in:
parent
49a123ad9a
commit
7081157740
2
.github/workflows/msi.yml
vendored
2
.github/workflows/msi.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
|||
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
|
||||
run: |
|
||||
$version = $env:GITHUB_REF.TrimStart("refs/tags/v")
|
||||
./build.ps1 -Architecture ${{ matrix.arch }} -Version $version -Sign
|
||||
./build.ps1 -Architecture ${{ matrix.arch }} -Version $version -Download -Sign
|
||||
- name: Upload artifacts 🆙
|
||||
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea
|
||||
with:
|
||||
|
|
|
@ -9,12 +9,8 @@ Param
|
|||
[parameter(Mandatory = $false)]
|
||||
[string]
|
||||
$SDKVersion = "10.0.22621.0",
|
||||
[parameter(Mandatory = $false)]
|
||||
[boolean]
|
||||
$Download = $true,
|
||||
[parameter(Mandatory = $false)]
|
||||
[boolean]
|
||||
$Sign = $false
|
||||
[switch]$Download,
|
||||
[switch]$Sign
|
||||
)
|
||||
|
||||
$PSDefaultParameterValues['Out-File:Encoding'] = 'UTF8'
|
||||
|
@ -26,8 +22,8 @@ if ($Download) {
|
|||
# download the executable
|
||||
$file = "posh-windows-$Architecture.exe"
|
||||
$name = "oh-my-posh.exe"
|
||||
$download = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/$($file)"
|
||||
Invoke-WebRequest $download -Out "./dist/$($name)"
|
||||
$url = "https://github.com/jandedobbeleer/oh-my-posh/releases/download/v$Version/$($file)"
|
||||
Invoke-WebRequest $url -Out "./dist/$($name)"
|
||||
}
|
||||
|
||||
# variables
|
||||
|
|
Loading…
Reference in a new issue