auto build: create .mo files & update binary files

This commit is contained in:
dyphire
2023-12-09 14:44:40 +08:00
parent 60dfbee16d
commit d57692c5d1
2 changed files with 8 additions and 4 deletions

View File

@@ -20,8 +20,9 @@ function CreateFolder
foreach ($it in $PoFiles)
{
$folder = "$ExeFolder/Locale/$($it.BaseName)/LC_MESSAGES"
CreateFolder $folder
$moPath = Resolve-Path $folder/mpvnet.mo -ErrorAction Ignore
New-Item -ItemType Directory -Path $folder
$moPath = "$folder/mpvnet.mo"
New-Item -ItemType File -Path $moPath
msgfmt --output-file=$moPath $it.FullName
if ($LASTEXITCODE -ne 0)