Skip to content

Commit

Permalink
fixing batch file
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuchitra532 committed Nov 16, 2023
1 parent 51ad2fc commit 8ad75f2
Showing 1 changed file with 36 additions and 15 deletions.
51 changes: 36 additions & 15 deletions build_robohelp_gh.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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"

Expand All @@ -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
popd

0 comments on commit 8ad75f2

Please sign in to comment.