mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-22 09:18:18 +00:00
Before that the gettext command shipping with git for Windows were used. Since git 2.44.0 these are no longer bundled.
21 lines
717 B
PowerShell
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
|