From abf0daff9bf55d5e910551a765cc54c08a779506 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Fri, 8 Jan 2021 08:13:42 +0100 Subject: [PATCH] Try to make build_beta.bat alway make new language tags --- build_beta.bat | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/build_beta.bat b/build_beta.bat index 57889ada3..12cc1147d 100644 --- a/build_beta.bat +++ b/build_beta.bat @@ -14,19 +14,15 @@ 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. - ECHO Starting compilation... +REM MAKE DIR/CLEAN +IF NOT EXIST SubtitleEditBeta ( MD SubtitleEditBeta +) +IF EXIST SubtitleEditBeta\SubtitleEditBeta.zip ( DEL SubtitleEditBeta\SubtitleEditBeta.zip +) REM Set environment variables for Visual Studio command line if necessary :SetVsCmdLineEnv @@ -102,6 +98,18 @@ 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