diff --git a/packages/scoop/build.ps1 b/packages/scoop/build.ps1 index da4922d7ecda..20d867a8a976 100644 --- a/packages/scoop/build.ps1 +++ b/packages/scoop/build.ps1 @@ -14,14 +14,14 @@ function Get-HashForArchitecture { [string] $Version ) - $hash = (new-object Net.WebClient).DownloadString("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$Version/install-$Architecture.exe.sha256") + $hash = (new-object Net.WebClient).DownloadString("https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v$Version/install-$Architecture.msi.sha256") return $hash.Trim() } New-Item -Path "." -Name "dist" -ItemType "directory" -$HashAmd64 = Get-HashForArchitecture -Architecture 'amd64' -Version $Version -$Hash386 = Get-HashForArchitecture -Architecture '386' -Version $Version +$HashAmd64 = Get-HashForArchitecture -Architecture 'x64' -Version $Version +$Hash386 = Get-HashForArchitecture -Architecture 'x86' -Version $Version $content = Get-Content '.\oh-my-posh.json' -Raw $content = $content.Replace('', $Version) diff --git a/packages/scoop/oh-my-posh.json b/packages/scoop/oh-my-posh.json index b76cab50708a..9479930d42bf 100644 --- a/packages/scoop/oh-my-posh.json +++ b/packages/scoop/oh-my-posh.json @@ -8,39 +8,22 @@ }, "architecture": { "64bit": { - "url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-amd64.exe", + "url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-x64.msi", "hash": "" }, "32bit": { - "url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-386.exe", + "url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-x86.msi", "hash": "" } }, "installer": { "args": [ - "/CURRENTUSER", - "/VERYSILENT", - "/INSTALLER=scoop" + "/quiet", + "INSTALLER=scoop" ] }, - "checkver": { - "github": "https://github.com/JanDeDobbeleer/oh-my-posh" - }, "post_install": [ "Write-Host 'Thanks for installing Oh My Posh.'", "Write-Host 'Have a look at https://ohmyposh.dev for detailed instructions for your shell.'" - ], - "autoupdate": { - "architecture": { - "64bit": { - "url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-amd64.exe" - }, - "32bit": { - "url": "https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-386.exe" - } - }, - "hash": { - "url": "$url.sha256" - } - } + ] }