Files
picard/scripts/package/win-setup-gettext.ps1
Philipp Wolfer a769561dd8 CI: Install gettext for Windows
Before that the gettext command shipping with git for Windows were used.
Since git 2.44.0 these are no longer bundled.
2024-02-29 15:49:15 +01:00

21 lines
717 B
PowerShell

Param(
[Parameter(Mandatory = $true)]
[String]
$GettextVersion,
[Parameter(Mandatory = $true)]
[String]
$GettextSha256Sum
)
$ErrorActionPreference = "Stop"
$ScriptDirectory = Split-Path -Path $MyInvocation.MyCommand.Definition -Parent
. $ScriptDirectory\win-common.ps1
$ArchiveFile = ".\gettext-tools-windows.zip"
Write-Output "Downloading gettext-tools-windows $GettextVersion to $ArchiveFile..."
DownloadFile -Url "https://github.com/vslavik/gettext-tools-windows/releases/download/v$GettextVersion/gettext-tools-windows-$GettextVersion.zip" `
-FileName $ArchiveFile
VerifyHash -FileName $ArchiveFile -Sha256Sum $GettextSha256Sum
Expand-Archive -Path $ArchiveFile -DestinationPath .\gettext -Force