From 8ad75f2742b1e207bfe16a4e01be94e1dc3c1ac9 Mon Sep 17 00:00:00 2001 From: suchitra Date: Thu, 16 Nov 2023 12:43:07 +0000 Subject: [PATCH] fixing batch file --- build_robohelp_gh.bat | 51 ++++++++++++++++++++++++++++++------------- 1 file changed, 36 insertions(+), 15 deletions(-) diff --git a/build_robohelp_gh.bat b/build_robohelp_gh.bat index 5ef18e48f..768ee9446 100644 --- a/build_robohelp_gh.bat +++ b/build_robohelp_gh.bat @@ -12,20 +12,44 @@ set BUILDCLEAN=1 set BUILDBETA=0 set S3_BUCKET=%S3_BUCKET% set ZIP_FILE=%ZIP_FILE% -echo on set basedir=%~dp0 :check_options -if "%1"=="release" ( - set BUILDTYPE=release -) else if "%1"=="debug" ( - set BUILDTYPE=debug -) else if "%1"=="noclean" ( - set BUILDCLEAN=0 -) else if "%1"=="-beta" ( - set BUILDBETA=1 -) else ( +if %LANGUAGE%==EN ( + set robohelpPreset="GMS2 Manual Responsive HTML5 BETA" + goto finish_options +) else if %LANGUAGE%==ES ( + set robohelpPreset="GMS2 Manual Spanish" + goto finish_options +) else if %LANGUAGE%==FR ( + set robohelpPreset="GMS2 Manual French" + goto finish_options +) else if %LANGUAGE%==DE ( + set robohelpPreset="GMS2 Manual German" + goto finish_options +) else if %LANGUAGE%==RU ( + set robohelpPreset="GMS2 Manual Russian" + goto finish_options +) else if %LANGUAGE%==PT-BR ( + set robohelpPreset="GMS2 Manual Portuguese (Brazil)" + goto finish_options +) else if %LANGUAGE%==ZH ( + set robohelpPreset="GMS2 Manual Chinese (Simplified)" + goto finish_options +) else if %LANGUAGE%==IT ( + set robohelpPreset="GMS2 Manual Italian" + goto finish_options +) else if %LANGUAGE%==JA ( + set robohelpPreset="GMS2 Manual Japanese" + goto finish_options +) else if %LANGUAGE%==PL ( + set robohelpPreset="GMS2 Manual Polish" + goto finish_options +) else if %LANGUAGE%==KO ( + set robohelpPreset="GMS2 Manual Korean" + goto finish_options +)else ( set DESTDIR=%1 goto finish_options ) @@ -48,10 +72,7 @@ copy "RoboHelpTool.exe" "%basedir%" set roboHelpTool="%basedir%Adobe_RoboHelp_2022\RoboHelp.exe" set helpTagsTool="%basedir%RoboHelpTool.exe" -rmdir "%DESTDIR%\RoboHelp" /s /q - -set robohelpPreset="GMS2 Manual Responsive HTML5" -if %BUILDBETA% == 1 set robohelpPreset="GMS2 Manual Responsive HTML5 BETA" +echo "%robohelpPreset%" %roboHelpTool% --cl "%basedir%Manual\GMS2_Manual.rhpj" -o %robohelpPreset% -p "%DESTDIR%\RoboHelp" @@ -69,4 +90,4 @@ type "%basedir%SupportFiles\layout_fix_append.css" >> "%DESTDIR%\RoboHelp\templa @REM rem ************************************************** ZIP up the output pushd %DESTDIR%\RoboHelp 7z a YoYoStudioRoboHelp.zip . -r -popd \ No newline at end of file +popd