From 12d0126dd501108756d02d33c50574e5d7901981 Mon Sep 17 00:00:00 2001 From: stax76 Date: Mon, 15 Jul 2024 07:32:30 +0200 Subject: [PATCH] Again try to fix actions/workflow/auto build --- .github/workflows/build.yml | 2 +- lang/create-mo-files.ps1 | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 856abe3..6bb59c1 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 899d10d..162eee9 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