Skip to content

Commit 12d0126

Browse files
committed
Again try to fix actions/workflow/auto build
1 parent b218619 commit 12d0126

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
msbuild MpvNet.sln /m /p:Configuration=Debug
5151
- name: Create .mo files for localization
5252
shell: pwsh
53-
run: Install-Package Gettext.Tools -Force; .\lang\create-mo-files.ps1
53+
run: Install-Package Gettext.Tools -Force; $env:Path = ((Get-Package Gettext.Tools).Source | Split-Path) + '\tools\bin;' + $env:Path; .\lang\create-mo-files.ps1
5454
- name: Download libmpv # In principle, only update this binary file when significant feature changes occur in mpv/mpv.net
5555
shell: msys2 {0}
5656
run: |

lang/create-mo-files.ps1

-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ foreach ($it in $PoFiles)
1414
}
1515

1616
$moPath = "$folder/mpvnet.mo"
17-
18-
if (-not (Test-Path $moPath))
19-
{
20-
New-Item -ItemType File -Path $moPath | Out-Null
21-
}
22-
2317
msgfmt --output-file=$moPath $it.FullName
2418
if ($LastExitCode) { throw $LastExitCode }
2519
$moPath

0 commit comments

Comments
 (0)