From c63d0133f5b24caa56ed80d7f6332073249d8fb2 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sat, 30 Nov 2024 20:23:03 +0100 Subject: [PATCH] chore(winget): set correct version string --- .../winget/JanDeDobbeleer.OhMyPosh.installer.yaml | 12 ++++++------ packages/winget/build.ps1 | 3 +++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/packages/winget/JanDeDobbeleer.OhMyPosh.installer.yaml b/packages/winget/JanDeDobbeleer.OhMyPosh.installer.yaml index 00fd4047..53f542bf 100644 --- a/packages/winget/JanDeDobbeleer.OhMyPosh.installer.yaml +++ b/packages/winget/JanDeDobbeleer.OhMyPosh.installer.yaml @@ -11,42 +11,42 @@ InstallModes: - silentWithProgress Installers: - Architecture: x64 - InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download//install-x64.msi + InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-x64.msi InstallerSha256: Scope: machine UpgradeBehavior: install InstallerSwitches: Custom: INSTALLER=winget ALLUSERS=1 - Architecture: x64 - InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download//install-x64.msi + InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-x64.msi InstallerSha256: Scope: user UpgradeBehavior: install InstallerSwitches: Custom: INSTALLER=winget - Architecture: x86 - InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download//install-x86.msi + InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-x86.msi InstallerSha256: Scope: machine UpgradeBehavior: install InstallerSwitches: Custom: INSTALLER=winget ALLUSERS=1 - Architecture: x86 - InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download//install-x86.msi + InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-x86.msi InstallerSha256: Scope: user UpgradeBehavior: install InstallerSwitches: Custom: INSTALLER=winget - Architecture: arm64 - InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download//install-arm64.msi + InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-arm64.msi InstallerSha256: Scope: machine UpgradeBehavior: install InstallerSwitches: Custom: INSTALLER=winget ALLUSERS=1 - Architecture: arm64 - InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download//install-arm64.msi + InstallerUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/v/install-arm64.msi InstallerSha256: Scope: user UpgradeBehavior: install diff --git a/packages/winget/build.ps1 b/packages/winget/build.ps1 index 3bcca8dd..693cce98 100644 --- a/packages/winget/build.ps1 +++ b/packages/winget/build.ps1 @@ -50,6 +50,9 @@ function Write-MetaData { $content | Out-File -Encoding 'UTF8' "./$Version/$FileName" } +# clean version string +$Version = $Version.TrimStart('v') + New-Item -Path $PWD -Name $Version -ItemType "directory" # Get all files inside the folder and adjust the version/hash $HashAmd64 = Get-HashForArchitecture -Architecture 'x64' -Version $Version