diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 856abe3f..6bb59c14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: msbuild MpvNet.sln /m /p:Configuration=Debug - name: Create .mo files for localization shell: pwsh - run: Install-Package Gettext.Tools -Force; .\lang\create-mo-files.ps1 + run: Install-Package Gettext.Tools -Force; $env:Path = ((Get-Package Gettext.Tools).Source | Split-Path) + '\tools\bin;' + $env:Path; .\lang\create-mo-files.ps1 - name: Download libmpv # In principle, only update this binary file when significant feature changes occur in mpv/mpv.net shell: msys2 {0} run: | diff --git a/lang/create-mo-files.ps1 b/lang/create-mo-files.ps1 index 899d10d3..162eee98 100644 --- a/lang/create-mo-files.ps1 +++ b/lang/create-mo-files.ps1 @@ -14,12 +14,6 @@ foreach ($it in $PoFiles) } $moPath = "$folder/mpvnet.mo" - - if (-not (Test-Path $moPath)) - { - New-Item -ItemType File -Path $moPath | Out-Null - } - msgfmt --output-file=$moPath $it.FullName if ($LastExitCode) { throw $LastExitCode } $moPath