chore(winget): implement manifest 1.1.0

resolves #1693
This commit is contained in:
Jan De Dobbeleer 2022-02-05 20:34:43 +01:00 committed by Jan De Dobbeleer
parent d94a0db0a9
commit 4fe1feb488
4 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,6 @@
PackageIdentifier: JanDeDobbeleer.OhMyPosh
PackageVersion: <VERSION>
ReleaseDate: <DATE>
Platform:
- Windows.Desktop
MinimumOSVersion: 10.0.0.0
@ -35,4 +36,4 @@ Installers:
InstallerSwitches:
Custom: /CURRENTUSER
ManifestType: installer
ManifestVersion: 1.0.0
ManifestVersion: 1.1.0

View file

@ -26,4 +26,6 @@ Tags:
- utilities
- wsl
ManifestType: defaultLocale
ManifestVersion: 1.0.0
ManifestVersion: 1.1.0
ReleaseNotesUrl: https://github.com/JanDeDobbeleer/oh-my-posh/releases/tag/v<VERSION>

View file

@ -2,4 +2,4 @@ PackageIdentifier: JanDeDobbeleer.OhMyPosh
PackageVersion: <VERSION>
DefaultLocale: en-US
ManifestType: version
ManifestVersion: 1.0.0
ManifestVersion: 1.1.0

View file

@ -41,6 +41,8 @@ function Write-MetaData {
$content = $content.Replace('<VERSION>', $Version)
$content = $content.Replace('<HASH-AMD64>', $HashAmd64)
$content = $content.Replace('<HASH-ARM64>', $HashArm64)
$date = Get-Date -Format "yyyy-MM-dd"
$content = $content.Replace('<DATE>', $date)
$content | Out-File -Encoding 'UTF8' "./$Version/$FileName"
}