Also gen new language tags from build.bat

This commit is contained in:
Nikolaj Olsson 2021-01-08 15:59:41 +01:00
parent 34ead1c55c
commit a2a0ee4fdb

View File

@ -14,14 +14,6 @@ IF /I "%~1" == "-?" GOTO ShowHelp
ECHO Getting latest changes...
git pull
ECHO.
ECHO Check for new translation strings...
SET "LanguageToolPath=src\UpdateLanguageFiles\bin\debug\UpdateLanguageFiles.exe"
IF NOT EXIST "%LanguageToolPath%" (
ECHO Compile UpdateLanguageFiles!
)
"%LanguageToolPath%" "LanguageMaster.xml" "src\ui\Logic\LanguageDeserializer.cs"
ECHO Starting compilation...
REM Set environment variables for Visual Studio command line if necessary
@ -100,6 +92,16 @@ IF EXIST "%VSINSTALLDIR%MSBuild\Current\Bin\MSBuild.exe" (
GOTO EndWithError
))
ECHO Check for new translation strings...
"%MSBUILD%" src\UpdateLanguageFiles\UpdateLanguageFiles.csproj /r /t:Rebuild /p:Configuration=Debug /p:Platform="Any CPU"^
/maxcpucount /p:OutputPath=bin\debug /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
SET "LanguageToolPath=src\UpdateLanguageFiles\bin\debug\UpdateLanguageFiles.exe"
IF NOT EXIST "%LanguageToolPath%" (
ECHO Compile UpdateLanguageFiles!
)
"%LanguageToolPath%" "LanguageMaster.xml" "src\ui\Logic\LanguageDeserializer.cs"
ECHO.
"%MSBUILD%" SubtitleEdit.sln /r /t:%BUILDTYPE% /p:Configuration=Release /p:Platform="Any CPU"^
/maxcpucount /consoleloggerparameters:DisableMPLogging;Summary;Verbosity=minimal
IF %ERRORLEVEL% NEQ 0 GOTO EndWithError